add todo comment in coupon event

This commit is contained in:
Manuel Raynaud
2013-10-24 14:49:15 +02:00
parent 4065f338b9
commit 02c2f6560e

View File

@@ -124,6 +124,7 @@ class Coupon extends BaseAction implements EventSubscriberInterface
// @todo insert false product in cart with the name of the coupon and the discount as negative price
// Decrement coupon quantity
// @todo move this part in after order event
$couponQuery = CouponQuery::create();
$couponModel = $couponQuery->findOneByCode($coupon->getCode());
$couponManager->decrementeQuantity($couponModel);