summaryrefslogtreecommitdiff
path: root/FS/FS/Template_Mixin.pm
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2018-06-14 14:46:38 -0500
committerMitch Jackson <mitch@freeside.biz>2018-06-14 20:30:08 +0000
commit3d48c56539401f62cc46173479bb29879ec6d019 (patch)
tree4a08eb0d32020da5ba72f1236d9edab8c7b86daf /FS/FS/Template_Mixin.pm
parenta56ea36329a7d1bced2200ed0976e9147cf6e25c (diff)
RT# 80543 Crash creating new quotation
Diffstat (limited to 'FS/FS/Template_Mixin.pm')
-rw-r--r--FS/FS/Template_Mixin.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index cefb4bcc3..5cc2f05a9 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -3099,7 +3099,9 @@ sub _items_fee {
my @cust_bill_pkg = grep { $_->feepart } $self->cust_bill_pkg;
my $escape_function = $options{escape_function};
- my $locale = $self->cust_main->locale;
+ my $locale = $self->quotationnum
+ ? $self->prospect_main->locale
+ : $self->cust_main->locale;
my @items;
foreach my $cust_bill_pkg (@cust_bill_pkg) {