WIP Coupon

Refactor : creating dedicated reusable module for Constraints
Adding ConstraintManager
Secured :
- Effects : RemoveXPercent + RemoveXAmount
- Validators : all  except ModelParam (need CustomerModelParam, AreaModelParam, CountryModelParam ?)
- Conditions : AvailableForTotalAmount
This commit is contained in:
gmorel
2013-08-27 18:53:18 +02:00
parent e971179a60
commit c24e82758f
48 changed files with 1632 additions and 350 deletions

View File

@@ -179,7 +179,7 @@ class CouponBaseAdapter implements CouponAdapterInterface
*/
public function getContainer()
{
// TODO: Implement getCheckoutPostagePrice() method.
// TODO: Implement getContainer() method.
}
/**
@@ -191,4 +191,16 @@ class CouponBaseAdapter implements CouponAdapterInterface
{
return $this->getContainer()->get('thelia.translator');
}
/**
* Return the main currency
* THe one used to set prices in BackOffice
*
* @return string
*/
public function getMainCurrency()
{
// TODO: Implement getMainCurrency() method.
}
}