From 4b807e2b4703d1fe8d5d7411f59153e50db89ac3 Mon Sep 17 00:00:00 2001 From: Bahfir Abbes Date: Tue, 12 Nov 2024 13:51:13 +0100 Subject: [PATCH] sells do not need to be paid completely to be included in the cash control (#31727) Co-authored-by: abb --- htdocs/compta/cashcontrol/report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/cashcontrol/report.php b/htdocs/compta/cashcontrol/report.php index 34719bd6755c8..8e72c84a2946d 100644 --- a/htdocs/compta/cashcontrol/report.php +++ b/htdocs/compta/cashcontrol/report.php @@ -143,7 +143,7 @@ $sql .= " WHERE pf.fk_facture = f.rowid AND p.rowid = pf.fk_paiement AND cp.id = p.fk_paiement AND p.fk_bank = b.rowid"; $sql .= " AND f.module_source = '".$db->escape($posmodule)."'"; $sql .= " AND f.pos_source = '".$db->escape($terminalid)."'"; -$sql .= " AND f.paye = 1"; +//$sql .= " AND f.paye = 1"; $sql .= " AND p.entity = ".$conf->entity; // Never share entities for features related to accountancy /*if ($key == 'cash') $sql.=" AND cp.code = 'LIQ'"; elseif ($key == 'cheque') $sql.=" AND cp.code = 'CHQ'";