Skip to content

Commit

Permalink
(bug) unable to generate invoice for payment by check/transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
gnepud committed Feb 29, 2024
1 parent a2aa1f3 commit d4b5b3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## Next release

- Fix a bug: unable to generate invoice for payment by check/transfer

## v6.3.14 2024 February 26

- improvement: add idp_slo_service_url(logout requests url) to saml provider
Expand Down
4 changes: 2 additions & 2 deletions app/services/invoices/payment_details_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ def payment_mean(invoice, total, wallet_amount)
# else
if invoice.paid_by_card?
I18n.t('invoices.settlement_by_debit_card')
elsif paid_by_transfer?
elsif invoice.paid_by_transfer?
I18n.t('invoices.settlement_by_transfer')
elsif paid_by_check?
elsif invoice.paid_by_check?
I18n.t('invoices.settlement_by_check')
else
I18n.t('invoices.settlement_done_at_the_reception')
Expand Down

0 comments on commit d4b5b3d

Please sign in to comment.