X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Forder_pkg.html;h=4dd2b7b2011831f6d1f47ed806a56c4be141ace7;hb=d3e18527e2fa36b7b7fe7b8b0a5906caae3cb8de;hp=2c8335154753c122694a39496debe32ac51855d0;hpb=a661ced3f9f678a645780eaa0b183d2de5f100fa;p=freeside.git
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html
index 2c8335154..4dd2b7b20 100644
--- a/httemplate/misc/order_pkg.html
+++ b/httemplate/misc/order_pkg.html
@@ -1,16 +1,11 @@
<% include('/elements/header-popup.html', 'Order new package' ) %>
-
+
+
- function enable_order_pkg () {
- if ( document.OrderPkgForm.pkgpart.selectedIndex > 0 ) {
- document.OrderPkgForm.submit.disabled = false;
- } else {
- document.OrderPkgForm.submit.disabled = true;
- }
- }
-
-
+
<% include('/elements/error.html') %>
@@ -19,18 +14,50 @@
<% ntable("#cccccc", 2) %>
+<% include('/elements/tr-select-cust-part_pkg.html',
+ 'curr_value' => $pkgpart,
+ 'classnum' => -1,
+ 'cust_main' => $cust_main,
+ )
+%>
+
- Package |
-
- <% include('/elements/select-cust-part_pkg.html',
- 'curr_value' => $pkgpart,
- 'cust_main' => $cust_main,
- 'onchange' => 'enable_order_pkg',
- )
- %>
+ | Start date
+ |
+ <% include('/elements/input-date-field.html',{
+ 'name' => 'start_date',
+ 'format' => $date_format,
+ 'value' => $start_date,
+ 'noinit' => 1,
+ }) %>
+ (leave blank to start immediately)
|
+% 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,
+ )
+ %>
+% }
+
+% if ( $curuser->access_right('Waive setup fee') ) {
+
+ Waive setup fee |
+ |
+
+% }
+
% if ( $conf->exists('pkg_referral') ) {
<% include('/elements/tr-select-part_referral.html',
'curr_value' => scalar( $cgi->param('refnum') ), #get rid of empty_label first# || $cust_main->refnum,
@@ -47,20 +74,48 @@
)
%>
+
+ Contract end date
+ |
+ <% include('/elements/input-date-field.html',{
+ 'name' => 'contract_end',
+ 'format' => $date_format,
+ 'value' => '',
+ 'noinit' => 1,
+ }) %>
+ |
+
+
+<% include( '/elements/standardize_locations.html',
+ 'form' => "OrderPkgForm",
+ 'onlyship' => 1,
+ 'no_company' => 1,
+ 'callback' => 'document.OrderPkgForm.submit();',
+ )
+%>
+
->
+
+>