1 <STYLE TYPE="text/css">
2 .invoice { font-family: sans-serif; font-size: 10pt }
3 .invoice_header { font-size: 10pt }
4 .invoice_headerright TH { border-top: 2px solid #000000; border-bottom: 2px solid #000000 }
5 .invoice_headerright TD { font-size: 10pt; empty-cells: show }
6 .invoice_longtable table { cellspacing: none }
7 .invoice_longtable TH { border-top: 2px solid #000000; border-bottom: 1px solid #000000; padding-left: none; padding-right: none; font-size: 10pt }
8 .invoice_desc TD { border-top: 2px solid #000000; font-weight: bold; font-size: 10pt }
9 .invoice_extdesc TD { font-size: 8pt }
10 .invoice_totaldesc TD { font-size: 10pt; empty-cells: show }
13 <table class="invoice" bgcolor="#ffffff" WIDTH=768 CELLSPACING=8><tr><td>
15 <table class="invoice_header" width="100%">
17 <td><img src="<%= $cid ? "cid:$cid" : "cust_bill-logo.cgi?$template" %>"></td>
18 <td align="left"><%= $returnaddress %></td>
20 <table CLASS="invoice_headerright" cellspacing=0>
36 <B><%= $custnum %></B>
41 <th colspan=3 align="center">
42 <FONT SIZE="+3">I</FONT><FONT SIZE="+2">NVOICE</FONT>
54 <b><%= $payname %></b><BR>
55 <%= join('<BR>', grep length($_), $company,
58 "$city, $state $zip",
64 Terms: <%= $terms %><BR>
71 <p><b><font size="+1">C</font><font size="+0">HARGES</font></b>
73 <table class="invoice_longtable" CELLSPACING=0 WIDTH="100%">
75 <th align="center">Ref</th>
76 <th align="left">Description</th>
78 ? '<th align="left">Unit Price</th>'.
79 '<th align="left">Quantity</th>'
83 <th align="right">Amount</th>
87 foreach my $line ( @detail_items ) {
89 '<tr class="invoice_desc">'.
90 '<td align="center">'. $line->{'ref'}. '</td>'.
91 '<td align="left">'. $line->{'description'}. '</td>'.
93 ? '<td align="left">'. $line->{'unit_amount'}. '</td>'.
94 '<td align="left">'. $line->{'quantity'}. '</td>'
97 '<td align="right">'. $line->{'amount'}. '</td>'.
100 if ( @{$line->{'ext_description'} } ) {
101 $OUT .= '<tr class="invoice_extdesc"><td></td><td';
102 $OUT .= $unitprices ? ' colspan=3>' : '>';
103 $OUT .= '<table width="100%">';
104 foreach my $ext_desc ( @{$line->{'ext_description'} } ) {
106 '<tr class="invoice_extdesc">'.
107 '<td align="left"> '. $ext_desc. '</td>'.
110 $OUT .= '</table></td><td></td></tr>';
114 my $style = 'border-top: 3px solid #000000;';
117 foreach my $line ( @total_items ) {
119 $style .= 'border-bottom: 3px solid #000000;'
120 if ++$linenum == scalar(@total_items);
123 '<tr class="invoice_totaldesc">'.
124 qq(<td style="$style"> </td>).
125 qq(<td align="left" style="$style").
126 ( $unitprices ? ' colspan=3>' : '>' ).
127 $line->{'total_item'}. '</td>'.
128 qq(<td align="right" style="$style">).
129 $line->{'total_amount'}. '</td>'.
143 <hr NOSHADE SIZE=2 COLOR="#000000">
144 <p align="center"><%= $footer %>