Show invoice amounts as currency

This commit is contained in:
Lance Edgar 2023-02-21 18:49:15 -06:00
parent 0b71e20f74
commit bc96879fe3

View file

@ -147,8 +147,10 @@ class ExportableInvoiceView(MasterView):
g.set_sort_defaults('invoice_date', 'desc') g.set_sort_defaults('invoice_date', 'desc')
g.set_link('invoice_date') g.set_link('invoice_date')
# invoice_total # currency fields
g.set_type('invoice_total', 'currency') g.set_type('invoice_total', 'currency')
g.set_type('shipping_amount', 'currency')
g.set_type('supplies_amount', 'currency')
# status_code # status_code
g.set_enum('status_code', model.QuickbooksExportableInvoice.STATUS) g.set_enum('status_code', model.QuickbooksExportableInvoice.STATUS)
@ -212,8 +214,10 @@ class ExportableInvoiceView(MasterView):
# vendor # vendor
f.set_renderer('vendor', self.render_vendor) f.set_renderer('vendor', self.render_vendor)
# invoice_total # currency fields
f.set_type('invoice_total', 'currency') f.set_type('invoice_total', 'currency')
f.set_type('shipping_amount', 'currency')
f.set_type('supplies_amount', 'currency')
# status # status
f.set_enum('status_code', model.QuickbooksExportableInvoice.STATUS) f.set_enum('status_code', model.QuickbooksExportableInvoice.STATUS)