-% if ( $quotationnum ) {
-<& /elements/header.html, mt('One-time charge'), '',
- ( ($quotationnum || $cgi->param('error')) ? '' : 'onload="addRow()"' ),
-&>
+% if ( $quotationnum && ! $cust_main ) {
+<& /elements/header.html, mt('Quotation #[_1]: add one-time charge', $quotationnum) &>
% } else {
-<& /elements/header-cust_main.html, view=>'packages', cust_main=>$cust_main &>
-<h2>One-time charge</h2>
+<& /elements/header-cust_main.html,
+ view => $quotationnum ? 'quotations' : 'packages',
+ cust_main => $cust_main,
+ etc => $cgi->param('error') ? '' : 'onload="addRow()"',
+&>
+<h2><% $quotationnum
+ ? emt('Quotation #[_1]: add one-time charge', $quotationnum)
+ : mt('One-time charge')
+ %></h2>
% }
<& /elements/init_calendar.html &>
<INPUT TYPE="hidden" NAME="prospectnum" VALUE="<% $prospect_main ? $prospect_main->prospectnum : '' %>">
<INPUT TYPE="hidden" NAME="quotationnum" VALUE="<% $quotationnum %>">
-<TABLE ID="QuickChargeTable" BGCOLOR="#cccccc" BORDER=0 CELLSPACING=0 STYLE="background-color: #cccccc">
+<TABLE ID="QuickChargeTable" CLASS="fsinnerbox">
% if ( $cust_pkg ) { #modify one-time charge
% } else { # new one-time charge
<TR>
- <TD ALIGN="right"><% mt('Amount to charge') |h %> </TD>
+ <TH ALIGN="right"><% mt('Amount to charge') |h %> </TH>
<TD>
<% $money_char %><INPUT TYPE = "text"
NAME = "amount"
% if ( $conf->exists('invoice-unitprice') ) {
<TR>
- <TD ALIGN="right"><% mt('Quantity') |h %> </TD>
+ <TH ALIGN="right"><% mt('Quantity') |h %> </TH>
<TD>
<INPUT TYPE = "text"
NAME = "quantity"
% unless ( $quotationnum ) {
<TR>
- <TD ALIGN="right"><% mt('Invoice now') |h %></TD>
+ <TH ALIGN="right"><% mt('Invoice now') |h %></TH>
<TD>
<INPUT TYPE = "checkbox"
NAME = "bill_now"
% # false laziness w/misc/order_pkg.html
<TR>
- <TD ALIGN="right"><% mt('Charge date') |h %> </TD>
+ <TH ALIGN="right"><% mt('Charge date') |h %> </TH>
<TD>
<INPUT TYPE = "text"
NAME = "start_date"
% }
<TR>
- <TD ALIGN="right"><% mt('Tax exempt') |h %> </TD>
+ <TH ALIGN="right"><% mt('Tax exempt') |h %> </TH>
<TD><INPUT TYPE="checkbox" NAME="setuptax" VALUE="Y" <% $cgi->param('setuptax') ? 'CHECKED' : '' %>></TD>
</TR>
% } # if !$cust_pkg
<TR>
- <TD ALIGN="right"><% mt('Description') |h %> </TD>
+ <TH ALIGN="right"><% mt('Description') |h %> </TH>
<TD>
<INPUT TYPE = "text"
NAME = "pkg"
</SCRIPT>
-</BODY>
-</HTML>
+% if ( $quotationnum ) {
+ <& /elements/footer.html &>
+% } else {
+ <& /elements/footer-cust_main.html &>
+% }
<%init>
my $curuser = $FS::CurrentUser::CurrentUser;