From: Mitch Jackson Date: Thu, 14 Jun 2018 19:46:38 +0000 (-0500) Subject: RT# 80543 Crash creating new quotation X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=965826f80175e6e09b851bdd119e955b6c3783d4;hp=381992561d7b1a88e05d49d3e474a2fad25873c7 RT# 80543 Crash creating new quotation --- diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index b9514fee1..578e5a192 100644 --- a/FS/FS/Template_Mixin.pm +++ b/FS/FS/Template_Mixin.pm @@ -3139,7 +3139,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) {