From bb25e5ec4183576064422b13c24893e47441a39f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Chili=C5=84ski?= Date: Tue, 8 Aug 2023 13:25:51 +0200 Subject: [PATCH] bugfix: if invoice send limit was specified as percentage and requested only for selected division, then total document count was calculated incorrect (restored PSR-2 compatibility) --- bin/lms-sendinvoices.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/lms-sendinvoices.php b/bin/lms-sendinvoices.php index b01278a985..b30b68e9c7 100755 --- a/bin/lms-sendinvoices.php +++ b/bin/lms-sendinvoices.php @@ -498,7 +498,9 @@ function ($value) { AND c.invoicenotice = 1 AND d.cdate >= $daystart AND d.cdate <= $dayend" - . ($customergroups ?: ''), $args)); + . ($customergroups ?: ''), + $args + )); if (empty($count)) { die; }