1
0
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:
Sylvain 2021-01-20 13:47:29 +01:00
parent e5439901d6
commit 8adb569891

View File

@ -45,6 +45,7 @@ class PaymentScheduleService
details: details
)
end
ps.total = items.map(&:amount).reduce(:+)
{ payment_schedule: ps, items: items }
end