Highlight "cost not found" as warning, for purchasing batch

This commit is contained in:
Lance Edgar 2018-06-28 12:27:04 -05:00
parent 1342d67746
commit 350e901c2a

View file

@ -610,10 +610,10 @@ class PurchasingBatchView(BatchMasterView):
return self.make_default_row_grid_tools(batch)
def row_grid_extra_class(self, row, i):
if row.status_code == row.STATUS_PRODUCT_NOT_FOUND:
if row.status_code in (row.STATUS_PRODUCT_NOT_FOUND,
row.STATUS_COST_NOT_FOUND):
return 'warning'
if row.status_code in (row.STATUS_COST_NOT_FOUND,
row.STATUS_INCOMPLETE,
if row.status_code in (row.STATUS_INCOMPLETE,
row.STATUS_ORDERED_RECEIVED_DIFFER,
row.STATUS_TRUCKDUMP_UNCLAIMED):
return 'notice'