mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
fix payment schedule total
This commit is contained in:
parent
e5439901d6
commit
8adb569891
@ -45,6 +45,7 @@ class PaymentScheduleService
|
||||
details: details
|
||||
)
|
||||
end
|
||||
ps.total = items.map(&:amount).reduce(:+)
|
||||
{ payment_schedule: ps, items: items }
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user