} elseif ($action == 'getLocalTax') { if (sizeof($data)) { $data = $data['data']; $result = POS::getLocalTax($data); echo json_encode($result); } } elseif ($action == 'getNotes') { $mode = $data['data']; $result = POS::getNotes($mode); echo json_encode($result); } elseif ($action == 'getWarehouse') { $result = POS::getWarehouse(); echo json_encode($result); } elseif ($action == 'checkPassword') { $pass = $data['data']['pass']; $login = $data['data']['login']; $result = POS::checkPassword($login, $pass); echo json_encode($result); } elseif ($action == 'searchCoupon') { $customerId = $data['data']; $result = POS::searchCoupon($customerId); echo json_encode($result); } elseif ($action == 'addPrint') { $addprint = $data['data']; $result = POS::addPrint($addprint); echo json_encode($result); } } } } echo $html;