diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-01-18 14:48:36 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-01-18 14:48:36 -0800 |
commit | a0c37cca3cea5a5167650e3338234dd17a1e81c1 (patch) | |
tree | 296474e7774719c1c1d9fca08db2c057ba09df09 /httemplate/misc | |
parent | f82ca6d06518839408050aed4812fea1ba864ad3 (diff) |
fix order package for quotes: don't display irrelevant fields, RT#22232 et al
Diffstat (limited to 'httemplate/misc')
-rw-r--r-- | httemplate/misc/order_pkg.html | 72 |
1 files changed, 38 insertions, 34 deletions
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html index d777e17da..36f1f5f37 100644 --- a/httemplate/misc/order_pkg.html +++ b/httemplate/misc/order_pkg.html @@ -75,43 +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)); + <TR> + <TH ALIGN="right"><% mt("Disable automatic $what charge") |h %> </TH> + <TD COLSPAN=6><INPUT TYPE="checkbox" NAME="no_auto" VALUE="Y"></TD> + </TR> +% } + <TR> - <TH ALIGN="right"><% mt("Disable automatic $what charge") |h %> </TH> - <TD COLSPAN=6><INPUT TYPE="checkbox" NAME="no_auto" VALUE="Y"></TD> + <TH ALIGN="right"><% mt('Start') |h %> </TD> + <TD COLSPAN=6> + <INPUT TYPE="radio" NAME="start" ID="start_now" VALUE="" <% $cgi->param('start') eq '' ? 'CHECKED' : ''%>>Now +   + <INPUT TYPE="radio" NAME="start" ID="start_on_hold" VALUE="on_hold" <% $cgi->param('start') eq 'on_hold' ? 'CHECKED' : ''%>>On hold +   + <INPUT TYPE="radio" NAME="start" ID="start_on_date" VALUE="on_date" <% $cgi->param('start') eq 'date' ? 'CHECKED' : ''%>>On date + + <& /elements/input-date-field.html,{ + 'name' => 'start_date', + 'format' => $date_format, + 'value' => '', + 'noinit' => 1, + } &> + </TD> </TR> -% } -<TR> - <TH ALIGN="right"><% mt('Start') |h %> </TD> - <TD COLSPAN=6> - <INPUT TYPE="radio" NAME="start" ID="start_now" VALUE="" <% $cgi->param('start') eq '' ? 'CHECKED' : ''%>>Now -   - <INPUT TYPE="radio" NAME="start" ID="start_on_hold" VALUE="on_hold" <% $cgi->param('start') eq 'on_hold' ? 'CHECKED' : ''%>>On hold -   - <INPUT TYPE="radio" NAME="start" ID="start_on_date" VALUE="on_date" <% $cgi->param('start') eq 'date' ? 'CHECKED' : ''%>>On date - - <& /elements/input-date-field.html,{ - 'name' => 'start_date', - 'format' => $date_format, - 'value' => '', - 'noinit' => 1, - } &> - </TD> -</TR> - -<TR> - <TH ALIGN="right"><% mt('Contract end date') |h %> </TD> - <TD COLSPAN=6> - <& /elements/input-date-field.html,{ - 'name' => 'contract_end', - 'format' => $date_format, - 'value' => '', - 'noinit' => 1, - } &> - </TD> -</TR> + <TR> + <TH ALIGN="right"><% mt('Contract end date') |h %> </TD> + <TD COLSPAN=6> + <& /elements/input-date-field.html,{ + 'name' => 'contract_end', + 'format' => $date_format, + 'value' => '', + 'noinit' => 1, + } &> + </TD> + </TR> + +% } </TABLE><BR> |