forked from Wavyzz/dolibarr
FIX Bank receipt was empty
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user