Do not allow to cumulate the coupon many times. Fix #217

This commit is contained in:
Manuel Raynaud
2014-02-19 16:41:22 +01:00
parent 41175e4a94
commit dafce9e070
6 changed files with 25 additions and 26 deletions

View File

@@ -94,6 +94,11 @@ class CartItem extends BaseCartItem
return $this->getPromo() == 1 ? $this->getPromoPrice() : $this->getPrice();
}
public function getRealTaxedPrice(Country $country)
{
return $this->getPromo() == 1 ? $this->getTaxedPromoPrice($country) : $this->getTaxedPrice($country);
}
public function getTaxedPrice(Country $country)
{
$taxCalculator = new Calculator();