% if ( $curuser->access_right('Generate quotation') ) {
<FONT CLASS="fsinnerbox-title"><% mt( 'Quotations' ) |h %></FONT>
% if ( $curuser->access_right('Generate quotation') ) {
<FONT CLASS="fsinnerbox-title"><% mt( 'Quotations' ) |h %></FONT>
% if ( @quotations ) {
<& /elements/table-grid.html &>
% my $bgcolor1 = '#eeeeee';
% my $bgcolor2 = '#ffffff';
% my $bgcolor = '';
% if ( @quotations ) {
<& /elements/table-grid.html &>
% my $bgcolor1 = '#eeeeee';
% my $bgcolor2 = '#ffffff';
% my $bgcolor = '';
<TR>
<TH CLASS="grid" BGCOLOR="#cccccc">#</TH>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Date') |h %></TH>
<TR>
<TH CLASS="grid" BGCOLOR="#cccccc">#</TH>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Date') |h %></TH>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Recurring') |h %></TH>
<TH CLASS="grid" BGCOLOR="#cccccc"></TH>
</TR>
<TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Recurring') |h %></TH>
<TH CLASS="grid" BGCOLOR="#cccccc"></TH>
</TR>
$new_query = 'custnum='. $opt{cust_main}->custnum;
@quotations = $opt{cust_main}->quotation;
} elsif ( $opt{prospect_main} ) {
$new_query = 'custnum='. $opt{cust_main}->custnum;
@quotations = $opt{cust_main}->quotation;
} elsif ( $opt{prospect_main} ) {
@quotations = $opt{prospect_main}->quotation;
} else {
die 'guru meditation #&&: neither cust_main nor prospect_main specified';
@quotations = $opt{prospect_main}->quotation;
} else {
die 'guru meditation #&&: neither cust_main nor prospect_main specified';