Add warning for "price breaches SRP" rows in pricing batch
This commit is contained in:
parent
6e7ee99b47
commit
201f7cc21e
|
@ -207,7 +207,8 @@ class PricingBatchView(BatchMasterView):
|
||||||
|
|
||||||
def row_grid_extra_class(self, row, i):
|
def row_grid_extra_class(self, row, i):
|
||||||
if row.status_code in (row.STATUS_PRODUCT_NOT_FOUND,
|
if row.status_code in (row.STATUS_PRODUCT_NOT_FOUND,
|
||||||
row.STATUS_CANNOT_CALCULATE_PRICE):
|
row.STATUS_CANNOT_CALCULATE_PRICE,
|
||||||
|
row.STATUS_PRICE_BREACHES_SRP):
|
||||||
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'
|
||||||
|
|
Loading…
Reference in a new issue