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,6 +2936,10 @@ class APIController extends Controller implements LoggedController
|
|||
break;
|
||||
}
|
||||
|
||||
// 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue