if (!$error) { $result = $cash->update($user); if ($result >= 0) { $_GET["id"] = $_POST["id"]; // Force chargement page en mode visu } else { setEventMessage($cash->errorsToString(), "errors"); $action = 'edit'; // Force chargement page edition } } } if (GETPOST('action', 'string') == 'confirm_delete' && GETPOST('confirm', 'string') == "yes" && $user->rights->pos->backend) { // Modification $cash = new Cash($db); $cash->delete(GETPOST('id')); header("Location: " . dol_buildpath("/pos/backend/terminal/cash.php", 1)); exit; } /* * View */ $countrynotdefined = $langs->trans("ErrorSetACountryFirst") . ' (' . $langs->trans("SeeAbove") . ')'; $helpurl = 'EN:Module_DoliPos|FR:Module_DoliPos_FR|ES:Módulo_DoliPos'; llxHeader('', '', $helpurl); $form = new Form($db); $htmlcompany = new FormCompany($db); if ($conf->stock->enabled) { $formproduct = new FormProduct($db); } /* ************************************************************************** */