echo json_encode($result);
     }
 } elseif ($action == 'asignarLabel') {
     $idProduct = $data['data']['idProduct'];
     $label = $data['data']['label'];
     $result = POS::asignarLabel($idProduct, $label);
     echo json_encode($resultado);
 } 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'];