X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Forder_pkg.html;h=36f1f5f370b759bd9dceeca7263a690fa5eead8b;hb=30026a09a72bb16b8c7e17035250b9d797bd47e2;hp=febe427f90a3ac84dc675c8e6f39f11b4db0460b;hpb=7be7baeebee74dab20d5a0a63f7066094c47519b;p=freeside.git
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html
index febe427f9..36f1f5f37 100644
--- a/httemplate/misc/order_pkg.html
+++ b/httemplate/misc/order_pkg.html
@@ -38,7 +38,8 @@
<& /elements/tr-select-sales.html,
'curr_value' => scalar($cgi->param('salesnum')),
- 'th' => 1,
+ 'agentnum' => $agent->agentnum,
+ 'th' => 1,
&>
% if ( $conf->exists('pkg_referral') ) {
@@ -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,
+ } &>
+ |
+
+
+% }
@@ -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,
&>
% }