RT# 31208,80543 Issue converting quotation
authorMitch Jackson <mitch@freeside.biz>
Fri, 29 Jun 2018 19:36:45 +0000 (14:36 -0500)
committerMitch Jackson <mitch@freeside.biz>
Fri, 29 Jun 2018 20:41:30 +0000 (20:41 +0000)
FS/FS/Template_Mixin.pm

index 39495f7..f197d00 100644 (file)
@@ -3112,9 +3112,9 @@ sub _items_fee {
   my @cust_bill_pkg = grep { $_->feepart } $self->cust_bill_pkg;
   my $escape_function = $options{escape_function};
 
-  my $locale = $self->quotationnum
-             ? $self->prospect_main->locale
-             : $self->cust_main->locale;
+  my $locale = $self->cust_main
+             ? $self->cust_main->locale
+             : $self->prospect_main->locale;
 
   my @items;
   foreach my $cust_bill_pkg (@cust_bill_pkg) {