summaryrefslogtreecommitdiff
path: root/FS/FS/cust_pay.pm
diff options
context:
space:
mode:
authorivan <ivan>2011-03-16 22:37:31 +0000
committerivan <ivan>2011-03-16 22:37:31 +0000
commitc3d3ee8e73fe9e7ffdbaa2dcc6a908ed55b8d259 (patch)
tree475c1a1e4b189de9c3e35641757925f1325e5e8d /FS/FS/cust_pay.pm
parentef9f21d3ba72e151c0cf73bcfdf0212d40f66a5a (diff)
remove separate _statement templates, RT#11912
Diffstat (limited to 'FS/FS/cust_pay.pm')
-rw-r--r--FS/FS/cust_pay.pm10
1 files changed, 6 insertions, 4 deletions
diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm
index 71bc707..29f3ddc 100644
--- a/FS/FS/cust_pay.pm
+++ b/FS/FS/cust_pay.pm
@@ -544,7 +544,7 @@ sub send_receipt {
my $error = '';
if ( ( exists($opt->{'manual'}) && $opt->{'manual'} )
- || ! $conf->exists('invoice_html_statement')
+ #|| ! $conf->exists('invoice_html_statement')
|| ! $cust_bill
)
{
@@ -599,7 +599,7 @@ sub send_receipt {
} else {
- warn "payment_receipt is on, but no payment_receipt_msgnum or invoice_html_statement is configured\n";
+ warn "payment_receipt is on, but no payment_receipt_msgnum\n";
}
@@ -611,8 +611,10 @@ sub send_receipt {
};
$error = $queue->insert(
- 'invnum' => $cust_bill->invnum,
- 'template' => 'statement',
+ 'invnum' => $cust_bill->invnum,
+ 'template' => 'statement',
+ 'notice_name' => 'Statement',
+ 'no_coupon' => 1,
);
}