1
0
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:
Du Peng 2023-12-11 17:01:08 +01:00
parent ebd2a5452e
commit d9e4568b71
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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