Add checking for promo. #783
This commit is contained in:
parent
eebd1d93c4
commit
abf4bbfe22
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue