From 01acedaedfb8494da856a253c54bf60981f3e5d6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 26 Oct 2016 17:58:28 -0500 Subject: [PATCH] Show vendor invoice rows as warning, if they have no case quantity --- tailbone/views/vendors/invoices.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tailbone/views/vendors/invoices.py b/tailbone/views/vendors/invoices.py index 4883fb41..e1a89906 100644 --- a/tailbone/views/vendors/invoices.py +++ b/tailbone/views/vendors/invoices.py @@ -143,7 +143,8 @@ class VendorInvoicesView(FileBatchMasterView): row.STATUS_DIFFERS_FROM_PURCHASE): attrs['class_'] = 'notice' if row.status_code in (row.STATUS_NOT_IN_DB, - row.STATUS_COST_NOT_IN_DB): + row.STATUS_COST_NOT_IN_DB, + row.STATUS_NO_CASE_QUANTITY): attrs['class_'] = 'warning' return attrs