FIX : some others modules (like subtotal) use other product_type than 0 or 1 AND must not be considered in this report
This commit is contained in:
parent
a1e714f123
commit
1f471d46eb
@ -243,6 +243,7 @@ if ($modecompta == 'CREANCES-DETTES')
|
||||
}
|
||||
$sql.= " WHERE l.fk_facture = f.rowid";
|
||||
$sql.= " AND f.fk_statut in (1,2)";
|
||||
$sql.= " AND l.product_type in (0,1)";
|
||||
if (! empty($conf->global->FACTURE_DEPOSITS_ARE_JUST_PAYMENTS)) {
|
||||
$sql.= " AND f.type IN (0,1,2,5)";
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user