[freeside-commits] branch FREESIDE_3_BRANCH updated. a0c37cca3cea5a5167650e3338234dd17a1e81c1
Ivan
ivan at 420.am
Sun Jan 18 14:48:38 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via a0c37cca3cea5a5167650e3338234dd17a1e81c1 (commit)
from f82ca6d06518839408050aed4812fea1ba864ad3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit a0c37cca3cea5a5167650e3338234dd17a1e81c1
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Jan 18 14:48:36 2015 -0800
fix order package for quotes: don't display irrelevant fields, RT#22232 et al
diff --git a/httemplate/misc/order_pkg.html b/httemplate/misc/order_pkg.html
index d777e17..36f1f5f 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>
-----------------------------------------------------------------------
Summary of changes:
httemplate/misc/order_pkg.html | 72 +++++++++++++++++++++-------------------
1 file changed, 38 insertions(+), 34 deletions(-)
More information about the freeside-commits
mailing list