Merge pull request #20077 from AlexisLaurier/bugfix/paymentByBankTransfertIndexTabEntity
add missing entity check on list of withdraws on index of paymentbyba…
This commit is contained in:
commit
7029bb7000
@ -182,6 +182,7 @@ $limit = 5;
|
||||
$sql = "SELECT p.rowid, p.ref, p.amount, p.datec, p.statut";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."prelevement_bons as p";
|
||||
$sql .= " WHERE p.type = 'bank-transfer'";
|
||||
$sql .= " AND p.entity IN (".getEntity('invoice').")";
|
||||
$sql .= " ORDER BY datec DESC";
|
||||
$sql .= $db->plimit($limit);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user