summaryrefslogtreecommitdiff
path: root/FS/FS/cust_pay.pm
diff options
context:
space:
mode:
authorChristopher Burger <burgerc@freeside.biz>2018-05-16 12:39:59 -0400
committerChristopher Burger <burgerc@freeside.biz>2018-05-17 08:35:40 -0400
commit68e64cd688ba399ed4d86de5e8f710269a39c76d (patch)
tree84947b7264e56c4997809bbfbfa0db18afed1928 /FS/FS/cust_pay.pm
parentcd4651a02fb2f091ab60a99acbb9fe1324500389 (diff)
RT# 78131 - added documentation for new method.
Diffstat (limited to 'FS/FS/cust_pay.pm')
-rw-r--r--FS/FS/cust_pay.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm
index b0a1e4b..4c82d10 100644
--- a/FS/FS/cust_pay.pm
+++ b/FS/FS/cust_pay.pm
@@ -712,7 +712,11 @@ sub send_receipt {
=item send_message_receipt
sends out a message receipt.
-send_message_receipt($cust_main, $msgnum);
+$error = $self->send_message_receipt(
+ 'cust_main' => $cust_main,
+ 'cust_bill' => $opt->{cust_bill},
+ 'msgnum' => $conf->config('payment_receipt_msgnum', $cust_main->agentnum)
+ );
=cut
@@ -727,7 +731,6 @@ sub send_message_receipt {
my %substitutions = ();
$substitutions{invnum} = $cust_bill->invnum if $cust_bill;
-# $substitutions{invnum} = $opt->{cust_bill}->invnum if $opt->{cust_bill};
my $msg_template = qsearchs('msg_template',{ msgnum => $msgnum});
unless ($msg_template) {