Fix adding of battery to invoice criteria for new JOs created from app. #750
This commit is contained in:
parent
a78c08b7a2
commit
8427b3fb3d
1 changed files with 5 additions and 1 deletions
|
|
@ -2936,7 +2936,11 @@ class APIController extends Controller implements LoggedController
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$icrit->addEntry($batt, $trade_in, 1);
|
// right now, the app does not include trade-ins but this might change in the future
|
||||||
|
if (empty($trade_in))
|
||||||
|
$icrit->addEntry($batt, null, 1);
|
||||||
|
else
|
||||||
|
$icrit->addEntry($batt, $trade_in, 1);
|
||||||
|
|
||||||
// send to invoice generator
|
// send to invoice generator
|
||||||
$invoice = $ic->generateInvoice($icrit);
|
$invoice = $ic->generateInvoice($icrit);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue