From bc96879fe3c836a2537db7a63035e41dba67b904 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 21 Feb 2023 18:49:15 -0600 Subject: [PATCH] Show invoice amounts as currency --- tailbone_quickbooks/views/quickbooks/invoices.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tailbone_quickbooks/views/quickbooks/invoices.py b/tailbone_quickbooks/views/quickbooks/invoices.py index 6ff8467..98d9ca5 100644 --- a/tailbone_quickbooks/views/quickbooks/invoices.py +++ b/tailbone_quickbooks/views/quickbooks/invoices.py @@ -147,8 +147,10 @@ class ExportableInvoiceView(MasterView): g.set_sort_defaults('invoice_date', 'desc') g.set_link('invoice_date') - # invoice_total + # currency fields g.set_type('invoice_total', 'currency') + g.set_type('shipping_amount', 'currency') + g.set_type('supplies_amount', 'currency') # status_code g.set_enum('status_code', model.QuickbooksExportableInvoice.STATUS) @@ -212,8 +214,10 @@ class ExportableInvoiceView(MasterView): # vendor f.set_renderer('vendor', self.render_vendor) - # invoice_total + # currency fields f.set_type('invoice_total', 'currency') + f.set_type('shipping_amount', 'currency') + f.set_type('supplies_amount', 'currency') # status f.set_enum('status_code', model.QuickbooksExportableInvoice.STATUS)