From 3dd70926b904bfb977cf79f358d493c10ec43441 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 9 Oct 2019 15:58:16 -0500 Subject: [PATCH] Expose unit cost diff for vendor invoice batch rows --- tailbone/views/batch/vendorinvoice.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tailbone/views/batch/vendorinvoice.py b/tailbone/views/batch/vendorinvoice.py index 35bb59b6..a6777504 100644 --- a/tailbone/views/batch/vendorinvoice.py +++ b/tailbone/views/batch/vendorinvoice.py @@ -53,6 +53,7 @@ class VendorInvoicesView(FileBatchMasterView): 'invoice_date', 'purchase_order_number', 'filename', + 'rowcount', 'created', 'created_by', 'executed', @@ -65,6 +66,7 @@ class VendorInvoicesView(FileBatchMasterView): 'parser_key', 'purchase_order_number', 'invoice_date', + 'rowcount', 'created', 'created_by', 'executed', @@ -81,6 +83,7 @@ class VendorInvoicesView(FileBatchMasterView): 'shipped_cases', 'shipped_units', 'unit_cost', + 'unit_cost_diff', 'status_code', ] @@ -190,7 +193,8 @@ class VendorInvoicesView(FileBatchMasterView): return 'warning' if row.status_code in (row.STATUS_NOT_IN_PURCHASE, row.STATUS_NOT_IN_INVOICE, - row.STATUS_DIFFERS_FROM_PURCHASE): + row.STATUS_DIFFERS_FROM_PURCHASE, + row.STATUS_UNIT_COST_DIFFERS): return 'notice'