X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Forder_pkg.html;h=799165fe06da953f09352659ac4aa79e920f8d1c;hb=292ef074d01bb925e9a466ed771bf2ac418bb44f;hp=057346810b43a0555a87723df9900a9278ee18c5;hpb=5c0cfcb8dec7c4f3a7aecea4c550ffb4bfb774c3;p=freeside.git diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index 057346810..799165fe0 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -5,10 +5,12 @@ } &> - - - - +<& /elements/xmlhttp.html, + 'url' => $p.'misc/xmlhttp-part_pkg_usageprice.html', + 'subs' => [ 'get_part_pkg_usageprice' ], +&> + +<& /elements/init_calendar.html &> @@ -33,12 +35,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 +58,7 @@ % } <% mt('Package') |h %> -<% ntable("#cccccc", 2) %> +<% ntable("#cccccc") %> % if ( $part_pkg ) { @@ -74,50 +77,71 @@ <& /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, + } &> + + + +% }
+%#so: +%# - hide until you selecdt a pacakge with add-ons +%# -lookup and display the available add-ons when +%# -add them to the (recur if there is one, otherwise setup) price and display magically like processing fees do on edit/cust_pay.cgi + +%# better label? + + + +
+
+ % my $discount_cust_pkg = $curuser->access_right('Discount customer package'); % my $waive_setup_fee = $curuser->access_right('Waive setup fee'); % % if ( $discount_cust_pkg || $waive_setup_fee ) { <% mt('Discounting') |h %> - <% ntable("#cccccc", 2) %> + <% ntable("#cccccc") %> % if ( $waive_setup_fee ) { @@ -143,7 +167,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 +199,9 @@ <& /elements/standardize_locations.html, 'form' => "OrderPkgForm", - 'callback' => 'document.OrderPkgForm.submit();', + 'callback' => 'document.OrderPkgForm.submit()', 'with_census' => 1, + 'with_census_functions' => 1, &> % }