Fix bug xhen insert new bankline

This commit is contained in:
Benoit 2017-05-05 22:21:46 +02:00 committed by Laurent Destailleur
parent 5a96ae54b9
commit ec4e416a6c

View File

@ -471,9 +471,9 @@ class Account extends CommonObject
if ($accline->insert() > 0) {
if ($categorie) {
$sql = "INSERT INTO ".MAIN_DB_PREFIX."categorie_account (";
$sql .= "fk_account, fk_categorie";
if ($categorie>0) {
$sql = "INSERT INTO ".MAIN_DB_PREFIX."bank_class (";
$sql .= "lineid, fk_categ;
$sql .= ") VALUES (";
$sql .= " ".$accline->id.", ".$categorie;
$sql .= ")";