Fix bug when product has empty suggested price

This commit is contained in:
Lance Edgar 2021-11-16 17:23:56 -06:00
parent f385aab44a
commit 0fa888efaf

View file

@ -558,8 +558,10 @@ class ProductView(MasterView):
def render_suggested_price(self, product, column):
text = self.render_price(product, column)
if not text:
return
if text and self.show_price_effective_dates():
if self.show_price_effective_dates():
history = self.get_suggested_price_history(product)
if history:
date = localtime(self.rattail_config, history[0]['changed'], from_utc=True).date()