mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-20 14:54:15 +01:00
(bug) unable to show wallet payment mean for invoice
This commit is contained in:
parent
ebd2a5452e
commit
d9e4568b71
@ -1,5 +1,8 @@
|
||||
# Changelog Fab-manager
|
||||
|
||||
- Fix a bug: unable to show wallet payment mean for invoice
|
||||
- [TODO DEPLOY] `rails fablab:setup:build_accounting_lines`
|
||||
|
||||
## v6.3.6 2023 December 6
|
||||
|
||||
- fix a bug: fix event service
|
||||
|
@ -165,6 +165,8 @@ class Invoice < PaymentDocument
|
||||
|
||||
if paid_by_card?
|
||||
res.push(means: :card, amount: amount_paid)
|
||||
elsif paid_by_wallet?
|
||||
res.push(means: :wallet, amount: amount_paid)
|
||||
else
|
||||
res.push(means: :other, amount: amount_paid)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user