fix: 🐛 adding a variable declaration in the corresponding scope

This commit is contained in:
System User 2025-08-26 15:07:37 +02:00
parent b7f42fc518
commit 9c6aefa56e

View file

@ -279,6 +279,7 @@ class AjaxController extends Controller
$cp = Coupon::where(['coupon_code' => $coupon_code])->first();
if ($this->isAvailable($cp, $campagne, $contact) && $this->isAvailableToPrint($cp, $campagne)) {
$newQtyAvailable = 0;
$imgCoupon = $this->printCp($cp, $contact);
$panierContent = PanierContent::where(['panier_content_couponId' => $cp->coupon_id, 'panier_content_panierId' => $panier->panier_id])->first();
if ($panierContent->panier_content_quantity > 0) {