1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-01 12:24:28 +01:00

fix pay with stripe and coupon

This commit is contained in:
Sylvain 2017-02-28 10:18:02 +01:00
parent b48557fd96
commit 4703350de5

View File

@ -195,7 +195,7 @@ class Reservation < ActiveRecord::Base
if @wallet_amount_debit != 0 and !on_site
invoice_items << Stripe::InvoiceItem.create(
customer: user.stp_customer_id,
amount: -@wallet_amount_debit,
amount: -@wallet_amount_debit.to_i,
currency: Rails.application.secrets.stripe_currency,
description: "wallet -#{@wallet_amount_debit / 100.0}"
)