projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
spacing
[freeside.git]
/
FS
/
FS
/
Template_Mixin.pm
diff --git
a/FS/FS/Template_Mixin.pm
b/FS/FS/Template_Mixin.pm
index
578e5a1
..
34e9e6e
100644
(file)
--- a/
FS/FS/Template_Mixin.pm
+++ b/
FS/FS/Template_Mixin.pm
@@
-2513,6
+2513,11
@@
use MIME::Base64;
sub postal_mail_fsinc {
my ( $self, %opt ) = @_;
sub postal_mail_fsinc {
my ( $self, %opt ) = @_;
+ if ( $FS::Misc::DISABLE_PRINT ) {
+ warn 'postal_mail_fsinc() disabled by $FS::Misc::DISABLE_PRINT' if $DEBUG;
+ return;
+ }
+
my $url = 'https://ws.freeside.biz/print';
my $cust_main = $self->cust_main;
my $url = 'https://ws.freeside.biz/print';
my $cust_main = $self->cust_main;
@@
-3139,9
+3144,9
@@
sub _items_fee {
my @cust_bill_pkg = grep { $_->feepart } $self->cust_bill_pkg;
my $escape_function = $options{escape_function};
my @cust_bill_pkg = grep { $_->feepart } $self->cust_bill_pkg;
my $escape_function = $options{escape_function};
- my $locale = $self->
quotationnum
- ? $self->
prospec
t_main->locale
- : $self->
cus
t_main->locale;
+ my $locale = $self->
cust_main
+ ? $self->
cus
t_main->locale
+ : $self->
prospec
t_main->locale;
my @items;
foreach my $cust_bill_pkg (@cust_bill_pkg) {
my @items;
foreach my $cust_bill_pkg (@cust_bill_pkg) {