diff options
author | Mark Wells <mark@freeside.biz> | 2016-07-06 12:46:38 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2016-07-06 13:12:29 -0700 |
commit | 6bed58c0b8187d22efb7cd0aba9d62b6a3b4ca32 (patch) | |
tree | 3b618ee476a003c96543bbe95040bc6de14c2267 /FS/FS/Template_Mixin.pm | |
parent | 0141b002ab937b2b3a21a92c3728bc3101f4668a (diff) |
use localized service labels in invoices, #71347
Diffstat (limited to 'FS/FS/Template_Mixin.pm')
-rw-r--r-- | FS/FS/Template_Mixin.pm | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 6b231498e..ed4bb6273 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -3356,6 +3356,7 @@ sub _items_cust_bill_pkg { # append the word 'Setup' to the setup line if there's going to be # a recur line for the same package (i.e. not a one-time charge) + # XXX localization my $description = $desc; $description .= ' Setup' if $cust_bill_pkg->recur != 0 @@ -3376,8 +3377,11 @@ sub _items_cust_bill_pkg { # always pass the svc_label through to the template, even if # not displaying it as an ext_description my @svc_labels = map &{$escape_function}($_), - $cust_pkg->h_labels_short($self->_date, undef, 'I'); - + $cust_pkg->h_labels_short($self->_date, + undef, + 'I', + $self->conf->{locale}, + ); $svc_label = $svc_labels[0]; unless ( $cust_pkg->part_pkg->hide_svc_detail @@ -3467,7 +3471,9 @@ sub _items_cust_bill_pkg { push @dates, undef if !$prev; my @svc_labels = map &{$escape_function}($_), - $cust_pkg->h_labels_short(@dates, 'I'); + $cust_pkg->h_labels_short(@dates, + 'I', + $self->conf->{locale}); $svc_label = $svc_labels[0]; # show service labels, unless... |