$error++; } } else { $error++; } if (!$error) { $db->commit(); setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); } else { $db->rollback(); setEventMessages($langs->trans("Error"), null, 'errors'); } } if ($action == "addnotif") { $bon = new BonPrelevement($db); $bon->AddNotification($db, GETPOST('user', 'int'), $action); header("Location: prelevement.php"); exit; } if ($action == "deletenotif") { $bon = new BonPrelevement($db); $bon->DeleteNotificationById(GETPOST('notif', 'int')); header("Location: prelevement.php"); exit; } /* * View */ $form = new Form($db); llxHeader('', $langs->trans("WithdrawalsSetup")); $linkback = '<a href="' . DOL_URL_ROOT . '/admin/modules.php">' . $langs->trans("BackToModuleList") . '</a>';
dolibarr_set_const($db, "PRELEVEMENT_CODE_GUICHET", $account->code_guichet,'chaine',0,'',$conf->entity); dolibarr_set_const($db, "PRELEVEMENT_NUMERO_COMPTE", $account->number,'chaine',0,'',$conf->entity); dolibarr_set_const($db, "PRELEVEMENT_NUMBER_KEY", $account->cle_rib,'chaine',0,'',$conf->entity); dolibarr_set_const($db, "PRELEVEMENT_IBAN", $account->iban,'chaine',0,'',$conf->entity); dolibarr_set_const($db, "PRELEVEMENT_BIC", $account->bic,'chaine',0,'',$conf->entity); dolibarr_set_const($db, "PRELEVEMENT_RAISON_SOCIALE", $account->proprio,'chaine',0,'',$conf->entity); } Header("Location: prelevement.php"); exit; } if ($_GET["action"] == "addnotif") { $bon = new BonPrelevement($db); $bon->AddNotification($db,$_POST["user"],$_POST["action"]); Header("Location: prelevement.php"); exit; } if ($_GET["action"] == "deletenotif") { $bon = new BonPrelevement($db); $bon->DeleteNotificationById($_GET["notif"]); Header("Location: prelevement.php"); exit; } /*