Edit for one step JO with service charges. #341

This commit is contained in:
Korina Cordero 2020-02-18 01:42:16 +00:00
parent 9a24b08bdd
commit ebc6867c8f

View file

@ -524,14 +524,14 @@ class CMBJobOrderHandler implements JobOrderHandlerInterface
} }
// get discount and set to meta // get discount and set to meta
$discount = $req->request->get('invoice_discount'); $discount = $req->request->get('invoice_discount', []);
// check if discount is greater than 50 or negative number // check if discount is greater than 50 or negative number
if (($discount > 50) || ($discount < 0)) if (($discount > 50) || ($discount < 0))
$error_array['invoice_discount'] = 'Invalid discount specified'; $error_array['invoice_discount'] = 'Invalid discount specified';
// get list of service charges // get list of service charges
$service_charges = $req->request->get('service_charges'); $service_charges = $req->request->get('service_charges', []);
if (empty($error_array)) if (empty($error_array))
{ {