Add checking for promo. #783

This commit is contained in:
Korina Cordero 2024-02-12 03:46:26 -05:00
parent eebd1d93c4
commit abf4bbfe22

View file

@ -1410,7 +1410,8 @@ class RiderAppController extends ApiController
// assuming JO information is already valid since this
// is in the system already
// add promo if any to criteria
$icrit->addPromo($promo);
if ($promo != null)
$icrit->addPromo($promo);
// get the battery purchased from existing invoice items
// add the batteries ordered to criteria