diff --git a/htdocs/compta/bank/account.class.php b/htdocs/compta/bank/account.class.php index 14bb51ab948..e9d2dd443c3 100644 --- a/htdocs/compta/bank/account.class.php +++ b/htdocs/compta/bank/account.class.php @@ -143,8 +143,10 @@ class Account break; } - $sql = "INSERT INTO ".MAIN_DB_PREFIX."bank (datec, dateo, label, amount, author, num_chq,fk_account, fk_type)"; - $sql .= " VALUES (now(), '$date', '$label', '" . ereg_replace(",",".",$amount) . "','$author','$num_chq', '$this->rowid', '$oper')"; + $datev = $date; + + $sql = "INSERT INTO ".MAIN_DB_PREFIX."bank (datec, dateo, datev, label, amount, author, num_chq,fk_account, fk_type)"; + $sql .= " VALUES (now(), '$date', '$datev', '$label', '" . ereg_replace(",",".",$amount) . "','$author','$num_chq', '$this->rowid', '$oper')"; if ($this->db->query($sql)) diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php index dbb84579caf..4f0c0b0ced7 100644 --- a/htdocs/compta/bank/ligne.php +++ b/htdocs/compta/bank/ligne.php @@ -27,6 +27,21 @@ if (!$user->rights->banque->modifier) llxHeader(); +if ($_GET["action"] == 'dvnext') +{ + $ac = new Account($db); + $ac->datev_next($_GET["rowid"]); +} + + +if ($_GET["action"] == 'dvprev') +{ + $ac = new Account($db); + $ac->datev_previous($_GET["rowid"]); +} + + + if ($_POST["action"] == 'confirm_delete_categ' && $_POST["confirm"] == yes) { $sql = "DELETE FROM ".MAIN_DB_PREFIX."bank_class WHERE lineid = $rowid AND fk_categ = $cat1"; @@ -119,7 +134,7 @@ print "