Resolve "Rider app trade-in support" #1723

Merged
arcticzero merged 79 commits from 783-rider-app-trade-in-support into master 2024-04-23 13:11:53 +00:00
Showing only changes of commit abf4bbfe22 - Show all commits

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