diff --git a/htdocs/compta/bank/account.php3 b/htdocs/compta/bank/account.php3 index f012637ca0d..00bf060b7c1 100644 --- a/htdocs/compta/bank/account.php3 +++ b/htdocs/compta/bank/account.php3 @@ -42,13 +42,15 @@ if ($account) { } else { $amount = - $debit ; } + + $dateop = "$dateoy" . "$dateo"; if ($num_chq) { $sql = "INSERT INTO llx_bank (datec, dateo, label, amount, author, num_chq,fk_account)"; - $sql .= " VALUES (now(), $dateo, '$label', $amount,'$author',$num_chq,$account)"; + $sql .= " VALUES (now(), $dateop, '$label', $amount,'$author',$num_chq,$account)"; } else { $sql = "INSERT INTO llx_bank (datec, dateo, label, amount, author,fk_account)"; - $sql .= " VALUES (now(), $dateo, '$label', $amount,'$author',$account)"; + $sql .= " VALUES (now(), $dateop, '$label', $amount,'$author',$account)"; } $result = $db->query($sql); @@ -160,7 +162,8 @@ if ($account) { print "Total :"; print "".price($total - $objp->amount)."".francs($total - $objp->amount)."\n"; print ""; - print ""; + print ''; + print ''; print "CHQ -"; print ""; print ""; @@ -218,7 +221,8 @@ if ($account) { print "Total :"; print "".price($total)."".francs($total)."\n"; print ""; - print ""; + print ''; + print ''; print "CHQ -"; print ""; print ""; @@ -228,8 +232,6 @@ if ($account) { print ''; - - } print ""; @@ -261,16 +263,13 @@ if ($account) { while ($i < $num) { $objp = $db->fetch_object( $i); - print "$objp->label$objp->bank$objp->number"; - $i++; } $db->free(); } - $acc = new Account($db); print "";