From 25492cc0e88f3ebf0e05fa23ad91bafeedbaa830 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 29 Jan 2017 11:29:53 -0600 Subject: [PATCH] Add warning highlight for pricing batch row if can't calculate price --- tailbone/views/batch/pricing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tailbone/views/batch/pricing.py b/tailbone/views/batch/pricing.py index c3991412..cd09f96d 100644 --- a/tailbone/views/batch/pricing.py +++ b/tailbone/views/batch/pricing.py @@ -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):