forked from Wavyzz/dolibarr
Task #11003: checkbox on checks to deposit
This commit is contained in:
@@ -86,6 +86,9 @@ 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']);
|
||||||
@@ -93,9 +96,6 @@ if ($_GET['action'] == 'create' && $_GET["accountid"] > 0 && $user->rights->banq
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user