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:
Laurent Destailleur 2022-02-16 20:26:39 +01:00 committed by GitHub
commit 7029bb7000
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);