diff options
author | Mitch Jackson <mitch@freeside.biz> | 2018-07-28 14:46:38 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2018-07-28 14:50:27 -0500 |
commit | a5bfed744069d69a1fe07eca1a64a2b22692cc22 (patch) | |
tree | 2e50b0089168763d42adb33d4593801de06a6072 /FS/FS/Template_Mixin.pm | |
parent | b548768fbbcdcae4df6f46ac38f0615437a20298 (diff) |
RT# 78547 - Flag to disable email/print/fax/etc during tests or reports
Diffstat (limited to 'FS/FS/Template_Mixin.pm')
-rw-r--r-- | FS/FS/Template_Mixin.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 1b3df0066..34e9e6ef8 100644 --- 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 ) = @_; + 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; |