projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix missing plaintext invoice alternative, RT#81486
[freeside.git]
/
FS
/
FS
/
Template_Mixin.pm
diff --git
a/FS/FS/Template_Mixin.pm
b/FS/FS/Template_Mixin.pm
index
1b3df00
..
9320e90
100644
(file)
--- a/
FS/FS/Template_Mixin.pm
+++ b/
FS/FS/Template_Mixin.pm
@@
-2268,7
+2268,7
@@
sub generate_email {
if (!@text) {
if (!@text) {
- if ( $conf->
config
($tc.'template') ) {
+ if ( $conf->
exists
($tc.'template') ) {
warn "$me generating plain text invoice"
if $DEBUG;
warn "$me generating plain text invoice"
if $DEBUG;
@@
-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;