Merge pull request #6801 from benlo06/BUG_ACCOUT_CATEGORIES

Fix add new line for bank records
This commit is contained in:
Laurent Destailleur 2017-05-10 22:43:18 +02:00 committed by GitHub
commit 33e93e9294

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 .= ")";