diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2018-07-16 14:40:39 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2018-07-16 15:02:49 -0400 |
| commit | a439c0c5998c428e7bfd533353911ae48b4bee7b (patch) | |
| tree | b1fd64c1bcf589dbae9f8659892191f2033e458c /httemplate/edit/process/cust_refund.cgi | |
| parent | a90d069b1f1d814a91bf7cb3eb0d7ac9fdec7e08 (diff) | |
RT# 74435 - added check, to make sure batch format can handle refunds
Conflicts:
httemplate/misc/download-batch.cgi
Diffstat (limited to 'httemplate/edit/process/cust_refund.cgi')
| -rwxr-xr-x | httemplate/edit/process/cust_refund.cgi | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/httemplate/edit/process/cust_refund.cgi b/httemplate/edit/process/cust_refund.cgi index 49aedf3fe..44605bf42 100755 --- a/httemplate/edit/process/cust_refund.cgi +++ b/httemplate/edit/process/cust_refund.cgi @@ -21,8 +21,6 @@ die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Refund payment') || $FS::CurrentUser::CurrentUser->access_right('Post refund'); -my $conf = new FS::Conf; - $cgi->param('custnum') =~ /^(\d*)$/ or die "Illegal custnum!"; my $custnum = $1; my $cust_main = qsearchs('cust_main', { 'custnum' => $custnum } ) @@ -62,12 +60,7 @@ if ( $error ) { my $refund = "$1$2"; $cgi->param('paynum') =~ /^(\d*)$/ or die "Illegal paynum!"; my $paynum = $1; - #my $paydate; my $paydate = $cgi->param('exp_year'). '-'. $cgi->param('exp_month'). '-01'; - #unless ($paynum) { - # if ($cust_payby->paydate) { $paydate = "$year-$month-01"; } - # else { $paydate = "2037-12-01"; } - #} if ( $cgi->param('batch') ) { $paydate = "2037-12-01" unless $paydate; |
