From 1ca1041c196876505cb9b591afbba34ada239682 Mon Sep 17 00:00:00 2001 From: Joe Date: Sat, 12 Nov 2022 14:04:03 +0100 Subject: [PATCH] Another rerun. Not translatable string in rep108. Fixed and improved. New empty.po. --- lang/new_language_template/LC_MESSAGES/empty.po | 17 +++++++++++++---- reporting/rep108.php | 8 ++++++-- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/lang/new_language_template/LC_MESSAGES/empty.po b/lang/new_language_template/LC_MESSAGES/empty.po index 6f15917e..1900b34b 100644 --- a/lang/new_language_template/LC_MESSAGES/empty.po +++ b/lang/new_language_template/LC_MESSAGES/empty.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 2.4\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2022-11-11 16:18+0100\n" +"POT-Creation-Date: 2022-11-12 13:59+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: Joe Hunt \n" "Language-Team: LANGUAGE \n" @@ -12526,15 +12526,24 @@ msgstr "" msgid "Outstanding Transactions" msgstr "" -#: reporting/rep108.php:178 +#: reporting/rep108.php:180 msgid "Statement" msgstr "" -#: reporting/rep108.php:178 +#: reporting/rep108.php:180 msgid "as of" msgstr "" -#: reporting/rep108.php:183 +#: reporting/rep108.php:180 +msgid "from" +msgstr "" + +#: reporting/rep108.php:182 +#, php-format +msgid "Customer %s has no overdue debs. No e-mail is send." +msgstr "" + +#: reporting/rep108.php:187 msgid "No customers with outstanding balances found" msgstr "" diff --git a/reporting/rep108.php b/reporting/rep108.php index 275da957..9a12e40a 100644 --- a/reporting/rep108.php +++ b/reporting/rep108.php @@ -175,8 +175,12 @@ function print_statements() for ($i = 0; $i < 5; $i++) $rep->TextWrap($col[$i], $rep->row, $col[$i + 1] - $col[$i], $str2[$i], 'right'); if ($email == 1) - $rep->End($email, _("Statement") . " " . _("as of") . " " . sql2date($date)); - + { + if (($CustomerRecord["Balance"]) != ($CustomerRecord["Balance"] - $CustomerRecord["Due"])) + $rep->End($email, _("Statement") . " " . _("as of") . " " . sql2date($date) . " " . _("from") . " " . get_company_pref('coy_name')); + else + display_notification(sprintf(_("Customer %s has no overdue debs. No e-mail is send."), $myrow["DebtorName"])); + } } if (!isset($rep)) -- 2.30.2