Fix bug with advance order setting wrong variable #405

This commit is contained in:
Kendrick Chan 2020-05-13 10:49:27 +08:00
parent 75b1d157b6
commit 0871ca1c1e

View file

@ -2379,7 +2379,7 @@ class APIController extends Controller implements LoggedController
->setDeliveryInstructions($instructions)
// TODO: error check for valid mode of payment
->setModeOfPayment($req->request->get('mode_of_payment'))
->setAdvanceOrder($advance_order);
->setAdvanceOrder($flag_advance_order);
// customer
$cust = $this->session->getCustomer();