Skip to content

Commit 9b90780

Browse files
nielsdrost7Copilot
andauthored
Update application/modules/reports/models/Mdl_reports.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 41227ea commit 9b90780

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

application/modules/reports/models/Mdl_reports.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public function sales_by_year(
561561
WHERE inv.client_id=ip_clients.client_id
562562
AND ' . $this->db->escape($from_date) . ' <= inv.invoice_date_created
563563
AND ' . $this->db->escape($to_date) . ' >= inv.invoice_date_created
564-
AND ' . $this->db->escape($minQuantity) . ' <=
564+
AND ' . (int)$minQuantity . ' <=
565565
(
566566
SELECT SUM(amounts2.invoice_total) FROM ip_invoice_amounts amounts2
567567
WHERE amounts2.invoice_id IN

0 commit comments

Comments
 (0)