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:
parent
b48557fd96
commit
4703350de5
@ -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}"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user