summaryrefslogtreecommitdiff
path: root/httemplate/misc/unapply-cust_pay.cgi
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2015-08-28 00:56:49 -0500
committerJonathan Prykop <jonathan@freeside.biz>2015-08-29 17:23:58 -0500
commit8508117a6127dc363736da08be6e71cb7aefc9d3 (patch)
tree1cf9cbad185a4a6485e9706a69dec841f68440f3 /httemplate/misc/unapply-cust_pay.cgi
parent225f922a9b48c5179b3fd9b28d9eb442d7e8598d (diff)
RT#37064: Add action link to manually refund a payment
Diffstat (limited to 'httemplate/misc/unapply-cust_pay.cgi')
-rwxr-xr-xhttemplate/misc/unapply-cust_pay.cgi6
1 files changed, 2 insertions, 4 deletions
diff --git a/httemplate/misc/unapply-cust_pay.cgi b/httemplate/misc/unapply-cust_pay.cgi
index 8cdac180b..b0343d034 100755
--- a/httemplate/misc/unapply-cust_pay.cgi
+++ b/httemplate/misc/unapply-cust_pay.cgi
@@ -12,9 +12,7 @@ my $paynum = $1;
my $cust_pay = qsearchs('cust_pay', { 'paynum' => $paynum } );
my $custnum = $cust_pay->custnum;
-foreach my $cust_bill_pay ( $cust_pay->cust_bill_pay ) {
- my $error = $cust_bill_pay->delete;
- errorpage($error) if $error;
-}
+my $error = $cust_pay->delete_cust_bill_pay;
+errorpage($error) if $error;
</%init>