Add setting of taxable for invoice criteria. #744
This commit is contained in:
parent
822bc59c6c
commit
783c26facc
3 changed files with 12 additions and 3 deletions
|
|
@ -154,6 +154,9 @@ class JobOrderController extends APIController
|
|||
|
||||
$icrit->setCustomerVehicle($data['customer_vehicle']);
|
||||
|
||||
// set taxable
|
||||
$icrit->setIsTaxable();
|
||||
|
||||
$icrit->addEntry($data['batt'], $data['trade_in_type'], 1);
|
||||
|
||||
// send to invoice generator
|
||||
|
|
|
|||
|
|
@ -153,9 +153,12 @@ class InvoiceManager implements InvoiceGeneratorInterface
|
|||
return $ierror;
|
||||
}
|
||||
|
||||
// this is called by JobOrderController when JS script generateInvoice is called
|
||||
// this is also called by the APIController from newRequestJobOrder
|
||||
// this is also called by generateInvoiceCriteria
|
||||
// called by the following:
|
||||
// (1) JobOrderController when JS script generateInvoice is called
|
||||
// (2) APIController from newRequestJobOrder
|
||||
// (3) generateInvoiceCriteria
|
||||
// (4) RiderAPIHandler's changeService
|
||||
// (5) TAPI's JobOrderController
|
||||
public function generateInvoice($criteria)
|
||||
{
|
||||
// no need to validate since generateDraftInvoice was called before this was called
|
||||
|
|
|
|||
|
|
@ -848,6 +848,9 @@ class ResqRiderAPIHandler implements RiderAPIHandlerInterface
|
|||
$crit->setCustomerVehicle($cv);
|
||||
$crit->setHasCoolant($jo->hasCoolant());
|
||||
|
||||
// set istaxable
|
||||
$crit->setIsTaxable();
|
||||
|
||||
if ($promo != null)
|
||||
$crit->addPromo($promo);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue