summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-06-18 18:13:21 -0700
committerIvan Kohler <ivan@freeside.biz>2014-06-18 18:13:21 -0700
commitca69a0d849a8a54417c777559b3fc342f0f11415 (patch)
treec4ecc6fb4a1fc92629252d5507d3e27d150716a5 /FS/FS/cust_bill.pm
parenta3a077fe8c0e30de5faa531b285b45d31abdf7f3 (diff)
fix (part of) 3.x performance regression on customers with tons of invoices, RT#29646, RT#24850
Diffstat (limited to 'FS/FS/cust_bill.pm')
-rw-r--r--FS/FS/cust_bill.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index 3113c20..31a749c 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -2404,9 +2404,12 @@ Returns a string with the invoice number and date, for example:
=cut
+#note: this uses _date_pretty_unlocalized because _date_pretty is too expensive
+# for backend use (and also does the wrong thing, localizing for end customer
+# instead of backoffice configured date format)
sub invnum_date_pretty {
my $self = shift;
- $self->mt('Invoice #'). $self->invnum. ' ('. $self->_date_pretty. ')';
+ $self->mt('Invoice #'). $self->invnum. ' ('. $self->_date_pretty_unlocalized. ')';
}
#sub _items_extra_usage_sections {