|
|
@@ -652,19 +652,17 @@ class AbstractLine(models.Model):
|
|
652
|
652
|
|
|
653
|
653
|
current_price_incl_tax = self.product.stockrecord.price_incl_tax
|
|
654
|
654
|
if current_price_incl_tax > self.price_incl_tax:
|
|
655
|
|
- msg = (
|
|
656
|
|
- u"The price of '%(product)s' has increased from %(old_price)s "
|
|
657
|
|
- u"to %(new_price)s since you added it to your basket")
|
|
658
|
|
- return _(msg) % {'product': self.product.get_title(),
|
|
659
|
|
- 'old_price': currency(self.price_incl_tax),
|
|
660
|
|
- 'new_price': currency(current_price_incl_tax)}
|
|
|
655
|
+ return _(
|
|
|
656
|
+ u"The price of '%(product)s' has increased from %(old_price)s to %(new_price)s since you added it to your basket") % {
|
|
|
657
|
+ 'product': self.product.get_title(),
|
|
|
658
|
+ 'old_price': currency(self.price_incl_tax),
|
|
|
659
|
+ 'new_price': currency(current_price_incl_tax)}
|
|
661
|
660
|
if current_price_incl_tax < self.price_incl_tax:
|
|
662
|
|
- msg = (
|
|
663
|
|
- u"The price of '%(product)s' has decreased from %(old_price)s "
|
|
664
|
|
- u"to %(new_price)s since you added it to your basket")
|
|
665
|
|
- return _(msg) % {'product': self.product.get_title(),
|
|
666
|
|
- 'old_price': currency(self.price_incl_tax),
|
|
667
|
|
- 'new_price': currency(current_price_incl_tax)}
|
|
|
661
|
+ return _(
|
|
|
662
|
+ u"The price of '%(product)s' has decreased from %(old_price)s to %(new_price)s since you added it to your basket") % {
|
|
|
663
|
+ 'product': self.product.get_title(),
|
|
|
664
|
+ 'old_price': currency(self.price_incl_tax),
|
|
|
665
|
+ 'new_price': currency(current_price_incl_tax)}
|
|
668
|
666
|
|
|
669
|
667
|
|
|
670
|
668
|
class AbstractLineAttribute(models.Model):
|