Merge pull request #13555 from atm-gauthier/fix_cabyprodserv

FIX : some others modules (like subtotal) use other product_type than…
This commit is contained in:
Laurent Destailleur 2020-04-10 20:03:56 +02:00 committed by GitHub
commit 70e71d32c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {