X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Forder_pkg.html;h=33b2bb39004d0324c040e9a26eb8a4c8e753ff64;hb=ad7f49821d40ffd099a45acc32ba91e0e211aede;hp=e05205ba7190d52d449f23ba022099a3786488f1;hpb=d6be23266fb627a4e7831055bf55ae675dbad4e9;p=freeside.git diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index e05205ba7..33b2bb390 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -60,15 +60,25 @@ +% if ( $cust_main->payby =~ /^(CARD|CHEK)$/ ) { +% my $what = lc(FS::payby->shortname($cust_main->payby)); + + Disable automatic <% $what %> charge + + +% } + % if ( $curuser->access_right('Discount customer package') ) { <% include('/elements/tr-select-discount.html', 'element_etc' => 'DISABLED', + 'colspan' => 7, + 'cgi' => $cgi, ) %> % } @@ -105,6 +115,7 @@ die "access denied" unless $curuser->access_right('Order customer package'); my $conf = new FS::Conf; +my $date_format = $conf->config('date_format') || '%m/%d/%Y'; $cgi->param('custnum') =~ /^(\d+)$/ or die "no custnum"; my $custnum = $1; @@ -116,7 +127,7 @@ my $cust_main = qsearchs({ my $pkgpart = scalar($cgi->param('pkgpart')); -my $format = "%m/%d/%Y %T %z (%Z)"; #false laziness w/REAL_cust_pkg.cgi? +my $format = $date_format. ' %T %z (%Z)'; #false laziness w/REAL_cust_pkg.cgi? my $start_date = $cust_main->next_bill_date; $start_date = $start_date ? time2str($format, $start_date) : '';