X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=httemplate%2Fmisc%2Forder_pkg.html;h=799165fe06da953f09352659ac4aa79e920f8d1c;hb=c06ef78a4489576a58581a06d366a0d1f040d2e5;hp=672e142c7904a6e85889844171377e929e984819;hpb=5aa599f2cda2c7923c162440e94ed8a931ffe8ac;p=freeside.git diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index 672e142c7..799165fe0 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -77,43 +77,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') |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('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, + } &> + + + +% }