Fix bug xhen insert new bankline
This commit is contained in:
parent
fb58dfa898
commit
e28dff19ee
@ -471,9 +471,9 @@ class Account extends CommonObject
|
|||||||
|
|
||||||
if ($accline->insert() > 0) {
|
if ($accline->insert() > 0) {
|
||||||
|
|
||||||
if ($categorie) {
|
if ($categorie>0) {
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."categorie_account (";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."bank_class (";
|
||||||
$sql .= "fk_account, fk_categorie";
|
$sql .= "lineid, fk_categ;
|
||||||
$sql .= ") VALUES (";
|
$sql .= ") VALUES (";
|
||||||
$sql .= " ".$accline->id.", ".$categorie;
|
$sql .= " ".$accline->id.", ".$categorie;
|
||||||
$sql .= ")";
|
$sql .= ")";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user