Use "warning" status for pricing batch rows, where product not found
This commit is contained in:
parent
e99f225def
commit
e153e530a8
|
@ -179,7 +179,8 @@ class PricingBatchView(BatchMasterView):
|
|||
return vendor_id
|
||||
|
||||
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'
|
||||
if row.status_code in (row.STATUS_PRICE_INCREASE, row.STATUS_PRICE_DECREASE):
|
||||
return 'notice'
|
||||
|
|
Loading…
Reference in a new issue