Add expected_amount to Invoice

expected_amount returns the sum of all associated orders together with
the transport costs.
This commit is contained in:
Patrick Gansterer 2022-02-18 13:03:34 +01:00
parent 093313f0f3
commit 052d297bff
4 changed files with 31 additions and 2 deletions

View file

@ -11,6 +11,7 @@ class InvoicesCsv < RenderCSV
Invoice.human_attribute_name(:supplier),
Invoice.human_attribute_name(:number),
Invoice.human_attribute_name(:amount),
Invoice.human_attribute_name(:total),
Invoice.human_attribute_name(:deposit),
Invoice.human_attribute_name(:deposit_credit),
Invoice.human_attribute_name(:paid_on),
@ -27,6 +28,7 @@ class InvoicesCsv < RenderCSV
t.supplier.name,
t.number,
t.amount,
t.expected_amount,
t.deposit,
t.deposit_credit,
t.paid_on,