add missing entity check on list of withdraws on index of paymentbybanktransfert

This commit is contained in:
Alexis LAURIER 2022-02-16 10:26:44 +01:00
parent 4b9f71d20e
commit 8b0280a9d2

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