Merge pull request #14735 from atm-florianm/10.0_FIX_prelevement_top5_multicompany

FIX: missing entity check
This commit is contained in:
Laurent Destailleur 2020-09-16 01:21:39 +02:00 committed by GitHub
commit e1d117b52d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,6 +179,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);