X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2FREAL_cust_pkg.cgi;h=166a3b7ea064bd07bb3cda9586e08d75a7490e81;hb=51c3d90d07c9d5b3e33a1f002cf5a252ef65bb7b;hp=170281ba0e5b98bdbff10e94128aa39fab0f31a9;hpb=fb4ab1073f0d15d660c6cdc4e07afebf68ef3924;p=freeside.git diff --git a/httemplate/edit/REAL_cust_pkg.cgi b/httemplate/edit/REAL_cust_pkg.cgi index 170281ba0..166a3b7ea 100755 --- a/httemplate/edit/REAL_cust_pkg.cgi +++ b/httemplate/edit/REAL_cust_pkg.cgi @@ -61,6 +61,7 @@ %#} <& .row_display, cust_pkg=>$cust_pkg, column=>'adjourn', label=>'Adjournment', note=>'(will suspend this package when the date is reached)' &> <& .row_display, cust_pkg=>$cust_pkg, column=>'susp', label=>'Suspension' &> + <& .row_display, cust_pkg=>$cust_pkg, column=>'resume', label=>'Resumption', note=> '(will unsuspend this package when the date is reached' &> <& .row_display, cust_pkg=>$cust_pkg, column=>'expire', label=>'Expiration', note=>'(will cancel this package when the date is reached)' &> <& .row_display, cust_pkg=>$cust_pkg, column=>'cancel', label=>'Cancellation' &> @@ -174,10 +175,17 @@ if ( $cgi->param('error') ) { if ( $errors{'_setup_areyousure'} ) { push @errors, "You are attempting to remove the setup date. This will re-charge the - customer for the setup fee. Are you sure you want to do this? ". + customer for the setup fee. Are you sure you want to do this? ". ''; } + if ( $errors{'_setupadd_areyousure'} ) { + push @errors, + "You are attempting to add a setup date. This will prevent charging the + customer for the setup fee. Are you sure you want to do this? ". + ''; + } + if ( $errors{'_start'} ) { push @errors, "You are attempting to add a start date to a package that has already @@ -192,7 +200,7 @@ if ( $cgi->param('error') ) { $cust_pkg = qsearchs('cust_pkg',{'pkgnum'=>$pkgnum}); die "No package!" unless $cust_pkg; - foreach my $col (qw( start_date setup last_bill bill adjourn expire )) { + foreach my $col (qw( start_date setup last_bill bill )) { my $value = $cgi->param($col); $cust_pkg->set( $col, $value ? parse_datetime($value) : '' ); }