diff options
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r-- | httemplate/edit/process/change-cust_pkg.html | 3 | ||||
-rwxr-xr-x | httemplate/edit/process/cust_credit.cgi | 3 | ||||
-rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 10 | ||||
-rwxr-xr-x | httemplate/edit/process/cust_pay.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/process/quick-charge.cgi | 2 | ||||
-rw-r--r-- | httemplate/edit/process/quick-cust_pkg.cgi | 1 |
6 files changed, 4 insertions, 17 deletions
diff --git a/httemplate/edit/process/change-cust_pkg.html b/httemplate/edit/process/change-cust_pkg.html index dfae846a0..2770f3283 100644 --- a/httemplate/edit/process/change-cust_pkg.html +++ b/httemplate/edit/process/change-cust_pkg.html @@ -3,7 +3,7 @@ % $cgi->redirect(popurl(3). 'misc/change_pkg.cgi?'. $cgi->query_string ); % } else { - <% header("Package changed") %> + <% header(emt("Package changed")) %> <SCRIPT TYPE="text/javascript"> window.top.location.reload(); </SCRIPT> @@ -19,7 +19,6 @@ die "access denied" unless $curuser->access_right('Change customer package'); my $cust_pkg = qsearchs({ - #'select' => 'cust_pkg.*', 'table' => 'cust_pkg', 'addl_from' => 'LEFT JOIN cust_main USING ( custnum )', 'hashref' => { 'pkgnum' => scalar($cgi->param('pkgnum')), }, diff --git a/httemplate/edit/process/cust_credit.cgi b/httemplate/edit/process/cust_credit.cgi index 8715ad61e..a4330dcdd 100755 --- a/httemplate/edit/process/cust_credit.cgi +++ b/httemplate/edit/process/cust_credit.cgi @@ -12,11 +12,10 @@ % or die "unknown custnum $custnum"; % $cust_main->apply_credits; % } -% #print $cgi->redirect(popurl(3). "view/cust_main.cgi?$custnum"); % % $dbh->commit or die $dbh->errstr if $oldAutoCommit; % -<% header('Credit sucessful') %> +<% header(emt('Credit sucessful')) %> <SCRIPT TYPE="text/javascript"> window.top.location.reload(); </SCRIPT> diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi index 65df2671e..3d56a8255 100755 --- a/httemplate/edit/process/cust_main.cgi +++ b/httemplate/edit/process/cust_main.cgi @@ -60,9 +60,6 @@ $cgi->param('invoicing_list', join(',', @invoicing_list) ); my $new = new FS::cust_main ( { map { $_, scalar($cgi->param($_)) -# } qw(custnum agentnum last first ss company address1 address2 city county -# state zip daytime night fax payby payinfo paydate payname tax -# otaker refnum) } fields('cust_main') } ); @@ -98,7 +95,6 @@ foreach my $dfield (qw( birthdate signupdate )) { if ( $dt ) { $parsed = $dt->epoch; } else { - # $error ||= $cgi->param('birthdate') . " is an invalid birthdate:" . $parser->errmsg; $error ||= "Invalid $dfield: $value"; } @@ -162,11 +158,7 @@ if ( $new->custnum eq '' ) { 'pkgpart' => $pkgpart, 'locationnum' => scalar($cgi->param('locationnum')), } ); - #$error ||= $cust_pkg->check; - #$cust_svc = new FS::cust_svc ( { 'svcpart' => $svcpart } ); - - #$error ||= $cust_svc->check; my $part_svc = qsearchs('part_svc', { 'svcpart' => $svcpart } ); my $svcdb = $part_svc->svcdb; @@ -219,8 +211,6 @@ if ( $new->custnum eq '' ) { die "$svcdb not handled on new customer yet"; } - #$error ||= $svc_acct->check; - } use Tie::RefHash; diff --git a/httemplate/edit/process/cust_pay.cgi b/httemplate/edit/process/cust_pay.cgi index d6bbf06b0..2c77e6b57 100755 --- a/httemplate/edit/process/cust_pay.cgi +++ b/httemplate/edit/process/cust_pay.cgi @@ -11,7 +11,7 @@ % } % if ( $link eq 'popup' ) { % -<% header('Payment entered') %> +<% header(emt('Payment entered')) %> <SCRIPT TYPE="text/javascript"> window.top.location.reload(); </SCRIPT> diff --git a/httemplate/edit/process/quick-charge.cgi b/httemplate/edit/process/quick-charge.cgi index 484f6fcc6..38f06e1e9 100644 --- a/httemplate/edit/process/quick-charge.cgi +++ b/httemplate/edit/process/quick-charge.cgi @@ -2,7 +2,7 @@ % $cgi->param('error', $error ); <% $cgi->redirect($p.'quick-charge.html?'. $cgi->query_string) %> % } else { -<% header("One-time charge added") %> +<% header(emt("One-time charge added")) %> <SCRIPT TYPE="text/javascript"> window.top.location.reload(); </SCRIPT> diff --git a/httemplate/edit/process/quick-cust_pkg.cgi b/httemplate/edit/process/quick-cust_pkg.cgi index 4ab56e19a..fab85252b 100644 --- a/httemplate/edit/process/quick-cust_pkg.cgi +++ b/httemplate/edit/process/quick-cust_pkg.cgi @@ -97,7 +97,6 @@ my $cust_pkg = new FS::cust_pkg { : '' ), 'waive_setup' => ( $cgi->param('waive_setup') eq 'Y' ? 'Y' : '' ), - #'discountnum_disabled' => scalar($cgi->param('discountnum_disabled')), }; my %opt = ( 'cust_pkg' => $cust_pkg ); |