From 201f7cc21e2ccf777467816f6d2784e8c1c3e158 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 28 Jan 2020 11:59:40 -0600 Subject: [PATCH] Add warning for "price breaches SRP" rows in pricing batch --- tailbone/views/batch/pricing.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tailbone/views/batch/pricing.py b/tailbone/views/batch/pricing.py index 84b17736..be870fbc 100644 --- a/tailbone/views/batch/pricing.py +++ b/tailbone/views/batch/pricing.py @@ -207,7 +207,8 @@ class PricingBatchView(BatchMasterView): def row_grid_extra_class(self, row, i): 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' if row.status_code in (row.STATUS_PRICE_INCREASE, row.STATUS_PRICE_DECREASE): return 'notice'