X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fmisc%2Forder_pkg.html;h=799165fe06da953f09352659ac4aa79e920f8d1c;hb=c06ef78a4489576a58581a06d366a0d1f040d2e5;hp=b06f9622cfed4f0af146b99f45eebdefb9843038;hpb=acbc7e3c55a3d5a0e9999b0630653ad510d4b19a;p=freeside.git diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index b06f9622c..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 &> @@ -75,44 +77,65 @@ <& /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'); %