diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-08-29 16:00:06 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-08-29 16:00:06 -0700 |
| commit | 0db7afaa7079e7a997d1309715d371a0d8ad279b (patch) | |
| tree | 8fef103fd2135c8717d21e55ec6e91f0ca77ab06 /httemplate/misc | |
| parent | 407b4dbfd15fb120a06a9c2da4fe77137aebdacf (diff) | |
| parent | 21c0c6fb8fef10843651a81152b02f1c174b3893 (diff) | |
Merge branch 'FREESIDE_3_BRANCH' of git.freeside.biz:/home/git/freeside into FREESIDE_3_BRANCH
Diffstat (limited to 'httemplate/misc')
| -rwxr-xr-x | httemplate/misc/unapply-cust_pay.cgi | 6 |
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> |
