"> <%= $returnaddress %>
Invoice date
<%= $date %>
Invoice number
<%= $invnum %>
  STATEMENT  
<%= $payname %>
<%= join('
', grep length($_), $company, $address1, $address2, "$city, $state  $zip", $country, ) %>
Terms: <%= $terms %>
<%= $po_line %>

CHARGES

<%= foreach my $line ( @detail_items ) { $OUT .= ''. ''. ''. ''. '' ; foreach my $ext_desc ( @{$line->{'ext_description'} } ) { $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=''; } %>
Ref Description Amount
'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'amount'}. '
- '. $ext_desc. '
 ). $line->{'total_item'}. '). $line->{'total_amount'}. '


<%= $notes %>


<%= $footer %>