2
0
forked from Wavyzz/dolibarr

FIX Bank receipt was empty

This commit is contained in:
Laurent Destailleur
2023-08-26 15:25:54 +02:00
parent 742a64c9dc
commit c23a9515f3

View File

@@ -179,13 +179,12 @@ if (empty($numref)) {
}
$sql .= " AND b.fk_account = ".((int) $object->id);
$sql .= " AND b.fk_account = ba.rowid";
$sql .= " AND d.entity IN (".getEntity($object->element).")";
$sql .= " AND ba.entity IN (".getEntity($object->element).")";
$sql .= $db->order("b.datev, b.datec", "ASC"); // We add date of creation to have correct order when everything is done the same day
$sqlrequestforbankline = $sql;
/*
* Actions
*/
@@ -667,6 +666,8 @@ if (empty($numref)) {
$i++;
}
$db->free($result);
} else {
dol_print_error($db);
}
// Line Total