Show vendor invoice rows as warning, if they have no case quantity

This commit is contained in:
Lance Edgar 2016-10-26 17:58:28 -05:00
parent 2772057381
commit 01acedaedf

View file

@ -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