From 1216e085212b51cdc5d7a59a258c0a571639414c Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Mon, 11 Apr 2011 08:45:20 +0000 Subject: [PATCH] Task #11003: checkbox on checks to deposit --- htdocs/compta/paiement/cheque/fiche.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/compta/paiement/cheque/fiche.php b/htdocs/compta/paiement/cheque/fiche.php index d9c5c9a3b78..8fa4af37784 100644 --- a/htdocs/compta/paiement/cheque/fiche.php +++ b/htdocs/compta/paiement/cheque/fiche.php @@ -86,6 +86,9 @@ if ($_POST['action'] == 'setdate' && $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'])) $result = $remisecheque->create($user, $_GET["accountid"], 0); // $result = $remisecheque->create($user, $_GET["accountid"], 0, $_POST['toRemise']); @@ -93,9 +96,6 @@ if ($_GET['action'] == 'create' && $_GET["accountid"] > 0 && $user->rights->banq else $result = $remisecheque->create($user, $_GET["accountid"], 0); - $remisecheque = new RemiseCheque($db); - //$result = $remisecheque->create($user, $_GET["accountid"], 0); - if ($result > 0) { if ($remisecheque->statut == 1) // If statut is validated, we build doc