2
0
forked from Wavyzz/dolibarr

Task #11003: checkbox on checks to deposit

This commit is contained in:
Juanjo Menent
2011-04-11 08:45:20 +00:00
parent 0d6fb6d7d8
commit 1216e08521

View File

@@ -87,15 +87,15 @@ if ($_POST['action'] == 'setdate' && $user->rights->banque->cheque)
if ($_GET['action'] == 'create' && $_GET["accountid"] > 0 && $user->rights->banque->cheque) if ($_GET['action'] == 'create' && $_GET["accountid"] > 0 && $user->rights->banque->cheque)
{ {
$remisecheque = new RemiseCheque($db);
//$result = $remisecheque->create($user, $_GET["accountid"], 0);
if (is_array($_POST['toRemise'])) if (is_array($_POST['toRemise']))
$result = $remisecheque->create($user, $_GET["accountid"], 0); // $result = $remisecheque->create($user, $_GET["accountid"], 0, $_POST['toRemise']); $result = $remisecheque->create($user, $_GET["accountid"], 0); // $result = $remisecheque->create($user, $_GET["accountid"], 0, $_POST['toRemise']);
else else
$result = $remisecheque->create($user, $_GET["accountid"], 0); $result = $remisecheque->create($user, $_GET["accountid"], 0);
$remisecheque = new RemiseCheque($db);
//$result = $remisecheque->create($user, $_GET["accountid"], 0);
if ($result > 0) if ($result > 0)
{ {
if ($remisecheque->statut == 1) // If statut is validated, we build doc if ($remisecheque->statut == 1) // If statut is validated, we build doc