Use "warning" status for pricing batch rows, where product not found

This commit is contained in:
Lance Edgar 2019-11-04 12:39:26 -06:00
parent e99f225def
commit e153e530a8

View file

@ -179,7 +179,8 @@ class PricingBatchView(BatchMasterView):
return vendor_id return vendor_id
def row_grid_extra_class(self, row, i): def row_grid_extra_class(self, row, i):
if row.status_code == row.STATUS_CANNOT_CALCULATE_PRICE: if row.status_code in (row.STATUS_PRODUCT_NOT_FOUND,
row.STATUS_CANNOT_CALCULATE_PRICE):
return 'warning' return 'warning'
if row.status_code in (row.STATUS_PRICE_INCREASE, row.STATUS_PRICE_DECREASE): if row.status_code in (row.STATUS_PRICE_INCREASE, row.STATUS_PRICE_DECREASE):
return 'notice' return 'notice'