Another rerun. Not translatable string in rep108. Fixed and improved. New empty.po.
authorJoe <joe.hunt.consulting@gmail.com>
Sat, 12 Nov 2022 13:04:03 +0000 (14:04 +0100)
committerJoe <joe.hunt.consulting@gmail.com>
Sat, 12 Nov 2022 13:04:03 +0000 (14:04 +0100)
lang/new_language_template/LC_MESSAGES/empty.po
reporting/rep108.php

index 6f15917e3965502478b0ddf7bb62734969f0e958..1900b34bbfddf58451b7169ea7ab2d031c0d7fe3 100644 (file)
@@ -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 <joe@frontaccounting.com>\n"
 "Language-Team: LANGUAGE <LL@li.org>\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 ""
 
index 275da95760e639a10d73a7aea62c37c98d773197..9a12e40ad94b6eb94564f6919ba3635d2197500f 100644 (file)
@@ -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))