Topic: Rep108: Statement - since when is it only emailing when overdue debits
I upgraded from 2.4.14 to 2.4.16 and just wanted to run my monthly statement reports to my dealers.
So I selected customer and email: yes.
Then I got the message "customer xxx has no overdue debits. No email is sent".
WHY? I checked an older version of rep108.php and it hasn't got this check... and I even can't find in the GITHub change logs anything about this.
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 debits. No e-mail is sent."), $myrow["DebtorName"]));
This makes no sense. Even if a customer has NO overdue debits he still needs to be sent a statement... I could just print it into a PDF, which still works and then manually create an email... but why would I need to do this...?
For now I have overwritten the new rep108 with the older one to keep the functionality.