From dac814b92658889693e915c1631cf37f19eeb8ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Thu, 6 Feb 2025 11:59:34 +0000 Subject: [PATCH] States in report rounding --- modules/EcmReports/ReportSales.inc.php | 5 +---- modules/EcmReports/tpls/ReportSales.tpl | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/EcmReports/ReportSales.inc.php b/modules/EcmReports/ReportSales.inc.php index 2169e965..e2b0ac2c 100644 --- a/modules/EcmReports/ReportSales.inc.php +++ b/modules/EcmReports/ReportSales.inc.php @@ -127,7 +127,7 @@ pozycja.price_purchase*pozycja.quantity_corrected END ) as koszt, - sum(s.quantity) AS 'state' + round(sum(s.quantity),0) AS 'state' FROM ecminvoiceoutitems pozycja JOIN @@ -156,9 +156,6 @@ } $query .= "GROUP BY pozycja.id COLLATE utf8_polish_ci;"; - - echo $query; - }else if ($searchBy=="contractor"){ $query = "SELECT diff --git a/modules/EcmReports/tpls/ReportSales.tpl b/modules/EcmReports/tpls/ReportSales.tpl index 8d303d81..ed84e431 100644 --- a/modules/EcmReports/tpls/ReportSales.tpl +++ b/modules/EcmReports/tpls/ReportSales.tpl @@ -329,7 +329,7 @@ {/if} {if $searchBy=="product"} {$ROW.code} - {$ROW.state} + {$ROW.state} {/if} {$ROW.ilosc|number_format:0:",":"."} {$ROW.netto|number_format:2:",":"."}