mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
fix Avoir mode by card
This commit is contained in:
parent
99e019c759
commit
6af425d272
@ -7,7 +7,7 @@ class Avoir < Invoice
|
||||
|
||||
after_create :notify_admins_refund_created
|
||||
|
||||
validates :payment_method, inclusion: { in: %w[stripe cheque transfer none cash wallet] }
|
||||
validates :payment_method, inclusion: { in: %w[card cheque transfer none cash wallet] }
|
||||
|
||||
attr_accessor :invoice_items_ids
|
||||
|
||||
|
@ -278,7 +278,7 @@ class PDF::Invoice < Prawn::Document
|
||||
payment_verbose = I18n.t('invoices.refund_on_DATE', DATE:I18n.l(invoice.avoir_date.to_date)) + ' '
|
||||
case invoice.payment_method
|
||||
when 'stripe'
|
||||
payment_verbose += I18n.t('invoices.by_stripe_online_payment')
|
||||
payment_verbose += I18n.t('invoices.by_card_online_payment')
|
||||
when 'cheque'
|
||||
payment_verbose += I18n.t('invoices.by_cheque')
|
||||
when 'transfer'
|
||||
|
@ -95,7 +95,7 @@ en:
|
||||
including_amount_payed_on_ordering: "Including amount payed on ordering"
|
||||
total_amount: "Total amount"
|
||||
refund_on_DATE: "Refund on %{DATE}"
|
||||
by_stripe_online_payment: "by Stripe (online payment)"
|
||||
by_card_online_payment: "by card (online payment)"
|
||||
by_cheque: "by cheque"
|
||||
by_transfer: "by transfer"
|
||||
by_cash: "by cash"
|
||||
|
Loading…
x
Reference in New Issue
Block a user