Fix SRP warning logic!

dang, had it reversed for some testing and then forgot to switch back
This commit is contained in:
Lance Edgar 2020-01-15 19:26:28 -06:00
parent 133ca622a0
commit 09a383f89c

View file

@ -509,7 +509,7 @@ class ProductsView(MasterView):
def warn_if_regprice_more_than_srp(self, product, text):
sugprice = product.suggested_price.price if product.suggested_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 text