Add expected_amount to Invoice
expected_amount returns the sum of all associated orders together with the transport costs.
This commit is contained in:
parent
093313f0f3
commit
052d297bff
4 changed files with 31 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue