Fix bug xhen insert new bankline
This commit is contained in:
parent
5a96ae54b9
commit
ec4e416a6c
@ -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