'; } } if (scalar(@sections) > 1) { my $style = 'border-top: 3px solid #000000;'. 'border-bottom: 3px solid #000000;'; $OUT .= ''. qq(). qq('. qq('. '' ; } if ($section->{'posttotal'}) { $OUT .= ''; } } my $style = 'border-top: 3px solid #000000;'; my $linenum = 0; foreach my $line ( @total_items ) { $style .= 'border-bottom: 3px solid #000000;' if ++$linenum == scalar(@total_items); $OUT .= ''. qq(). qq('. qq('. '' ; $style=''; } %>
<%= $ship_enable ? ('' ) : '' %>
"> <%= $returnaddress %>
Invoice date
<%= $date %>
Invoice #
<%= $invnum %>
Customer #
<%= $custnum %>
  INVOICE  
<%= $payname %>
<%= join('
', grep length($_), $company, $address1, $address2, "$city, $state  $zip", $country, ) %>
'. join('
',grep length($_), 'Service Address', $ship_company, $ship_address1, $ship_address2, "$ship_city, $ship_state $ship_zip", $ship_country, ' ', ' ', ). '
Terms: <%= $terms %>
<%= $po_line %>
<%= foreach my $section ( @sections ) { if ($section->{'pretotal'}) { $OUT .= '
'. '

'. uc(substr($section->{'pretotal'},0,1)). ''. uc(substr($section->{'pretotal'},1)). ''. '

'. '

'; } $OUT .= '
'; if ($section->{'description'}) { $OUT .= '

'. uc(substr($section->{'description'},0,1)). ''. uc(substr($section->{'description'},1)). ''. '

'; }else{ $OUT .= '

CHARGES'. '

'; } $OUT .= '

'; $OUT .= ''. ''. ''. ''. ( $unitprices ? ''. '' : '' ). ''. ''; my $lastref = 0; foreach my $line ( grep { ( scalar(@sections) > 1 ? $section->{'description'} eq $_->{'section'}->{'description'} : 1 ) } @detail_items ) { $OUT .= ''. ''. ''. ( $unitprices ? ''. '' : '' ). ''. '' ; $lastref = $line->{'ref'}; if ( @{$line->{'ext_description'} } ) { $OUT .= '' : '>'; $OUT .= '
RefDescriptionUnit PriceQuantityAmount
'. ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
'; foreach my $ext_desc ( @{$line->{'ext_description'} } ) { $OUT .= ''. ''. '' } $OUT .= '
/i ? '' : 'colspan=99' ). '>'. '  '. $ext_desc. '
 ' : '>' ). $section->{'description'}. ' Total ). $section->{'subtotal'}. '
'; $OUT .= '

'. $section->{'posttotal'}. ''. '

'; $OUT .= '

 ' : '>' ). $line->{'total_item'}. '). $line->{'total_amount'}. '


<%= $notes %>

<%= $footer %>