summaryrefslogtreecommitdiff
path: root/FS/FS/cust_bill.pm
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-02-23 15:25:35 -0800
committerMark Wells <mark@freeside.biz>2015-02-23 15:25:46 -0800
commit4363c9a6aac6d4d3918e355be80d9e86f8c8b641 (patch)
tree37dc97c4f1bd0c85d6ae26312efdad2e2837a8d1 /FS/FS/cust_bill.pm
parentaac2d8662226b1105d157f59983140589bd89c43 (diff)
specify invoice mode for post-payment statements, #33152
Diffstat (limited to 'FS/FS/cust_bill.pm')
-rw-r--r--FS/FS/cust_bill.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm
index f57f14f09..1a11457f3 100644
--- a/FS/FS/cust_bill.pm
+++ b/FS/FS/cust_bill.pm
@@ -1121,6 +1121,10 @@ sub queueable_email {
my $self = qsearchs('cust_bill', { 'invnum' => $opt{invnum} } )
or die "invalid invoice number: " . $opt{invnum};
+ if ( $opt{mode} ) {
+ $self->set('mode', $opt{mode});
+ }
+
my %args = map {$_ => $opt{$_}}
grep { $opt{$_} }
qw( from notice_name no_coupon template );