[freeside-commits] branch master updated. f23d8e66afadf1ad8dd8a642a690434f4c0b562f

Ivan ivan at 420.am
Mon Apr 3 18:33:00 PDT 2017


The branch, master has been updated
       via  f23d8e66afadf1ad8dd8a642a690434f4c0b562f (commit)
      from  67ecd0e886a2d08ff77bac7fb82c0b9be202710f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f23d8e66afadf1ad8dd8a642a690434f4c0b562f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Apr 3 18:32:59 2017 -0700

    configure "Please pay by" string per agent, RT#75372

diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 9a576bb..79f6813 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -1958,8 +1958,11 @@ sub balance_due_msg {
     # _items_total) and not here
     # (yes, or if invoice_sections is enabled; this is just for compatibility)
     if ( $self->due_date ) {
-      $msg .= ' - ' . $self->mt('Please pay by'). ' '.
-              $self->due_date2str('short')
+      my $please_pay_by =
+        $self->conf->config('invoice_pay_by_msg', $self->agentnum)
+        || 'Please pay by [_1]';
+      $msg .= ' - ' . $self->mt($please_pay_by, $self->due_date2str('short')).
+              ' '
        unless $self->conf->config_bool('invoice_omit_due_date',$self->agentnum);
     } elsif ( $self->terms ) {
       $msg .= ' - '. $self->mt($self->terms);

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Template_Mixin.pm |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)




More information about the freeside-commits mailing list