diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-06-18 18:13:21 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-06-18 18:13:21 -0700 |
commit | ca69a0d849a8a54417c777559b3fc342f0f11415 (patch) | |
tree | c4ecc6fb4a1fc92629252d5507d3e27d150716a5 /FS/FS/cust_bill.pm | |
parent | a3a077fe8c0e30de5faa531b285b45d31abdf7f3 (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.pm | 5 |
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 { |