Edit for one step JO with service charges. #341
This commit is contained in:
parent
9a24b08bdd
commit
ebc6867c8f
1 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue