X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Forder_pkg.html;h=36f1f5f370b759bd9dceeca7263a690fa5eead8b;hb=884a56decedee6bb6704fcc8887d65bb50ce6516;hp=057346810b43a0555a87723df9900a9278ee18c5;hpb=ad46607a14730f6ce4d70cd796b803591d90070e;p=freeside.git
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html
index 057346810..36f1f5f37 100644
--- a/httemplate/misc/order_pkg.html
+++ b/httemplate/misc/order_pkg.html
@@ -33,12 +33,13 @@
<% mt('Sales') |h %>
% }
% if ( $show_sales_table ) {
- <% ntable("#cccccc", 2) %>
+ <% ntable("#cccccc") %>
% }
<& /elements/tr-select-sales.html,
'curr_value' => scalar($cgi->param('salesnum')),
- 'th' => 1,
+ 'agentnum' => $agent->agentnum,
+ 'th' => 1,
&>
% if ( $conf->exists('pkg_referral') ) {
@@ -55,7 +56,7 @@
% }
<% mt('Package') |h %>
-<% ntable("#cccccc", 2) %>
+<% ntable("#cccccc") %>
% if ( $part_pkg ) {
@@ -74,41 +75,47 @@
<& /elements/tr-input-pkg-quantity.html, curr_value => $quantity &>
-% if ( $cust_main && $cust_main->payby =~ /^(CARD|CHEK)$/ ) {
-% my $what = lc(FS::payby->shortname($cust_main->payby));
+% unless ( $quotationnum ) {
+
+% if ( $cust_main && $cust_main->payby =~ /^(CARD|CHEK)$/ ) {
+% my $what = lc(FS::payby->shortname($cust_main->payby));
+
+ <% mt("Disable automatic $what charge") |h %> |
+ |
+
+% }
+
- <% mt("Disable automatic $what charge") |h %> |
- |
+ <% mt('Start') |h %>
+ |
+ param('start') eq '' ? 'CHECKED' : ''%>>Now
+
+ param('start') eq 'on_hold' ? 'CHECKED' : ''%>>On hold
+
+ param('start') eq 'date' ? 'CHECKED' : ''%>>On date
+
+ <& /elements/input-date-field.html,{
+ 'name' => 'start_date',
+ 'format' => $date_format,
+ 'value' => '',
+ 'noinit' => 1,
+ } &>
+ |
-% }
-
- <% mt('Start date') |h %>
- |
- <& /elements/input-date-field.html,{
- 'name' => 'start_date',
- 'format' => $date_format,
- 'value' => '',
- 'noinit' => 1,
- } &>
-
- (<% mt('leave blank to start immediately') |h %>)
- |
-
-
-
- <% mt('Contract end date') |h %>
- |
- <& /elements/input-date-field.html,{
- 'name' => 'contract_end',
- 'format' => $date_format,
- 'value' => '',
- 'noinit' => 1,
- } &>
- |
-
+
+ <% mt('Contract end date') |h %>
+ |
+ <& /elements/input-date-field.html,{
+ 'name' => 'contract_end',
+ 'format' => $date_format,
+ 'value' => '',
+ 'noinit' => 1,
+ } &>
+ |
+
+
+% }
@@ -117,7 +124,7 @@
%
% if ( $discount_cust_pkg || $waive_setup_fee ) {
<% mt('Discounting') |h %>
- <% ntable("#cccccc", 2) %>
+ <% ntable("#cccccc") %>
% if ( $waive_setup_fee ) {
@@ -143,7 +150,7 @@
% my $contact_title = $lock_locationnum ? 'Contact'
% : 'Contact and Location';
<% mt($contact_title) |h %>
-<% ntable("#cccccc", 2) %>
+<% ntable("#cccccc") %>
<& /elements/tr-select-contact.html,
'cgi' => $cgi,
@@ -175,8 +182,9 @@
<& /elements/standardize_locations.html,
'form' => "OrderPkgForm",
- 'callback' => 'document.OrderPkgForm.submit();',
+ 'callback' => 'document.OrderPkgForm.submit()',
'with_census' => 1,
+ 'with_census_functions' => 1,
&>
% }