Add warning highlight for pricing batch row if can't calculate price

This commit is contained in:
Lance Edgar 2017-01-29 11:29:53 -06:00
parent 3e98b24492
commit 25492cc0e8

View file

@ -90,6 +90,8 @@ class PricingBatchView(BatchMasterView):
if row.status_code in (row.STATUS_PRICE_INCREASE,
row.STATUS_PRICE_DECREASE):
attrs['class_'] = 'notice'
elif row.status_code == row.STATUS_CANNOT_CALCULATE_PRICE:
attrs['class_'] = 'warning'
return attrs
def _preconfigure_row_fieldset(self, fs):