|
|
@@ -364,7 +364,7 @@ class AbstractBasket(models.Model):
|
|
364
|
364
|
"""
|
|
365
|
365
|
Return total line price excluding tax
|
|
366
|
366
|
"""
|
|
367
|
|
- return self._get_total('line_price_excl_tax_and_discounts')
|
|
|
367
|
+ return self._get_total('line_price_excl_tax_incl_discounts')
|
|
368
|
368
|
|
|
369
|
369
|
@property
|
|
370
|
370
|
def total_tax(self):
|
|
|
@@ -376,7 +376,7 @@ class AbstractBasket(models.Model):
|
|
376
|
376
|
"""
|
|
377
|
377
|
Return total price inclusive of tax and discounts
|
|
378
|
378
|
"""
|
|
379
|
|
- return self._get_total('line_price_incl_tax_and_discounts')
|
|
|
379
|
+ return self._get_total('line_price_incl_tax_incl_discounts')
|
|
380
|
380
|
|
|
381
|
381
|
@property
|
|
382
|
382
|
def total_incl_tax_excl_discounts(self):
|
|
|
@@ -749,7 +749,7 @@ class AbstractLine(models.Model):
|
|
749
|
749
|
return self.quantity * self.unit_price_excl_tax
|
|
750
|
750
|
|
|
751
|
751
|
@property
|
|
752
|
|
- def line_price_excl_tax_and_discounts(self):
|
|
|
752
|
+ def line_price_excl_tax_incl_discounts(self):
|
|
753
|
753
|
if self._discount_excl_tax:
|
|
754
|
754
|
return self.line_price_excl_tax - self._discount_excl_tax
|
|
755
|
755
|
if self._discount_incl_tax:
|
|
|
@@ -761,7 +761,7 @@ class AbstractLine(models.Model):
|
|
761
|
761
|
return self.line_price_excl_tax
|
|
762
|
762
|
|
|
763
|
763
|
@property
|
|
764
|
|
- def line_price_incl_tax_and_discounts(self):
|
|
|
764
|
+ def line_price_incl_tax_incl_discounts(self):
|
|
765
|
765
|
# We use whichever discount value is set. If the discount value was
|
|
766
|
766
|
# calculated against the tax-exclusive prices, then the line price
|
|
767
|
767
|
# including tax
|