diff --git a/CHANGELOG.md b/CHANGELOG.md index c8026f9ed..a10840ff4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Next release +- improvement: add settlement by transfer/check to invoice paiement info + ## v6.3.12 2024 February 12 - improvement: Allow the admin to update payment method only the overdue subscription item without cancel PayZen subscription diff --git a/app/services/invoices/payment_details_service.rb b/app/services/invoices/payment_details_service.rb index 56181f504..7d7ace7bd 100644 --- a/app/services/invoices/payment_details_service.rb +++ b/app/services/invoices/payment_details_service.rb @@ -62,6 +62,10 @@ class Invoices::PaymentDetailsService # else if invoice.paid_by_card? I18n.t('invoices.settlement_by_debit_card') + elsif paid_by_transfer? + I18n.t('invoices.settlement_by_transfer') + elsif paid_by_check? + I18n.t('invoices.settlement_by_check') else I18n.t('invoices.settlement_done_at_the_reception') end diff --git a/config/locales/en.yml b/config/locales/en.yml index cc3437fe5..9252146be 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -126,6 +126,8 @@ en: by_wallet: "by wallet" no_refund: "No refund" settlement_by_debit_card: "Settlement by debit card" + settlement_by_transfer: "Settlement by transfer" + settlement_by_check: "Settlement by check" settlement_done_at_the_reception: "Settlement done at the reception" settlement_by_wallet: "Settlement by wallet" on_DATE_at_TIME: "on %{DATE} at %{TIME},"