Fix #19404 : only validated invoice must be considered in unpaid indicator
This commit is contained in:
parent
0273ab67fe
commit
1bb07dbc6b
@ -2418,7 +2418,7 @@ class FactureFournisseur extends CommonInvoice
|
||||
$sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";
|
||||
}
|
||||
$sql .= ' WHERE ff.paye=0';
|
||||
$sql .= ' AND ff.fk_statut > 0';
|
||||
$sql .= ' AND ff.fk_statut = '.self::STATUS_VALIDATED;
|
||||
$sql .= " AND ff.entity = ".$conf->entity;
|
||||
if ($user->socid) {
|
||||
$sql .= ' AND ff.fk_soc = '.$user->socid;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user