X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Fcust_credit.cgi;h=8715ad61eaf5f114267e1c5cbfdb3fb4c480c150;hb=74e058c8a010ef6feb539248a550d0bb169c1e94;hp=19faca47ac5c48bf0c32fdc35fda9dfb809e2ff2;hpb=3ce7691203a7737406bf2d4442f7fd84b81f847e;p=freeside.git diff --git a/httemplate/edit/process/cust_credit.cgi b/httemplate/edit/process/cust_credit.cgi index 19faca47a..8715ad61e 100755 --- a/httemplate/edit/process/cust_credit.cgi +++ b/httemplate/edit/process/cust_credit.cgi @@ -1,23 +1,10 @@ -% -% -%$cgi->param('custnum') =~ /^(\d*)$/ or die "Illegal custnum!"; -%my $custnum = $1; -% -%my $new = new FS::cust_credit ( { -% map { -% $_, scalar($cgi->param($_)); -% } fields('cust_credit') -%} ); -% -%my $error = $new->insert; -% %if ( $error ) { +% $cgi->param('reasonnum', $reasonnum); % $cgi->param('error', $error); -% +% $dbh->rollback if $oldAutoCommit; % <% $cgi->redirect(popurl(2). "cust_credit.cgi?". $cgi->query_string ) %> % -% %} else { % % if ( $cgi->param('apply') eq 'yes' ) { @@ -27,6 +14,7 @@ % } % #print $cgi->redirect(popurl(3). "view/cust_main.cgi?$custnum"); % +% $dbh->commit or die $dbh->errstr if $oldAutoCommit; % <% header('Credit sucessful') %>