Fix SRP warning logic!
dang, had it reversed for some testing and then forgot to switch back
This commit is contained in:
parent
133ca622a0
commit
09a383f89c
|
@ -509,7 +509,7 @@ class ProductsView(MasterView):
|
||||||
def warn_if_regprice_more_than_srp(self, product, text):
|
def warn_if_regprice_more_than_srp(self, product, text):
|
||||||
sugprice = product.suggested_price.price if product.suggested_price else None
|
sugprice = product.suggested_price.price if product.suggested_price else None
|
||||||
regprice = product.regular_price.price if product.regular_price else None
|
regprice = product.regular_price.price if product.regular_price else None
|
||||||
if sugprice and regprice and sugprice > regprice:
|
if sugprice and regprice and sugprice < regprice:
|
||||||
return HTML.tag('span', style='color: red;', c=text)
|
return HTML.tag('span', style='color: red;', c=text)
|
||||||
return text
|
return text
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue