Merge pull request #14563 from atm-florianm/11.0_FIX_prelevement_top5_multicompany

FIX: missing entity check
This commit is contained in:
Laurent Destailleur 2020-08-27 19:46:45 +02:00 committed by GitHub
commit dda5775dd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -180,6 +180,7 @@ print '</div><div class="fichetwothirdright"><div class="ficheaddleft">';
$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 entity IN (" . getEntity('prelevement') . ")";
$sql.= " ORDER BY datec DESC";
$sql.= $db->plimit($limit);