Merge pull request #7888 from atm-gauthier/5.0_fix_where_fk_status

FIX : test for filter fk_status
This commit is contained in:
Laurent Destailleur 2017-11-29 15:32:51 +01:00 committed by GitHub
commit d2135fd139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ dol_mkdir($dir);
$stats = new FactureStats($db, $socid, $mode, ($userid>0?$userid:0));
if ($mode == 'customer')
{
if ($object_status != '' && $object_status >= -1) $stats->where .= ' AND f.fk_statut IN ('.$object_status.')';
if ($object_status != '' && $object_status >= 0) $stats->where .= ' AND f.fk_statut IN ('.$object_status.')';
}
if ($mode == 'supplier')
{