projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
71720: Prevent billing events from running on holidays
[freeside.git]
/
httemplate
/
misc
/
unapply-cust_pay.cgi
diff --git
a/httemplate/misc/unapply-cust_pay.cgi
b/httemplate/misc/unapply-cust_pay.cgi
index
8cdac18
..
34c1ecf
100755
(executable)
--- a/
httemplate/misc/unapply-cust_pay.cgi
+++ b/
httemplate/misc/unapply-cust_pay.cgi
@@
-1,4
+1,4
@@
-<% $cgi->redirect($p. "view/cust_main.cgi?
". $custnum
) %>
+<% $cgi->redirect($p. "view/cust_main.cgi?
custnum=". $custnum. ";show=payment_history"
) %>
<%init>
die "access denied"
<%init>
die "access denied"
@@
-12,9
+12,7
@@
my $paynum = $1;
my $cust_pay = qsearchs('cust_pay', { 'paynum' => $paynum } );
my $custnum = $cust_pay->custnum;
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>
</%init>