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>
72 foreach my $section ( @sections ) {
73 if ($section->{'pretotal'}) {
75 '<table width="100%"><tr><td>'.
76 '<p align="right"><b><font size="+1">'.
77 uc(substr($section->{'pretotal'},0,1)).
78 '</font><font size="+0">'. uc(substr($section->{'pretotal'},1)).
83 $OUT .= '<table><tr><td>';
84 if ($section->{'description'}) {
86 '<p><b><font size="+1">'. uc(substr($section->{'description'},0,1)).
87 '</font><font size="+0">'. uc(substr($section->{'description'},1)).
92 '<p><b><font size="+1">C</font><font size="+0">HARGES</font></b>'.
95 $OUT .= '</td></tr></table>';
98 '<table class="invoice_longtable" CELLSPACING=0 WIDTH="100%">'.
100 '<th align="center">Ref</th>'.
101 '<th align="left">Description</th>'.
103 ? '<th align="left">Unit Price</th>'.
104 '<th align="left">Quantity</th>'
108 '<th align="right">Amount</th>'.
112 grep { ( scalar(@sections) > 1
113 ? $section->{'description'} eq $_->{'section'}->{'description'}
119 '<tr class="invoice_desc">'.
120 '<td align="center">'. $line->{'ref'}. '</td>'.
121 '<td align="left">'. $line->{'description'}. '</td>'.
123 ? '<td align="left">'. $line->{'unit_amount'}. '</td>'.
124 '<td align="left">'. $line->{'quantity'}. '</td>'
128 '<td align="right">'. $line->{'amount'}. '</td>'.
131 if ( @{$line->{'ext_description'} } ) {
132 $OUT .= '<tr class="invoice_extdesc"><td></td><td';
133 $OUT .= $unitprices ? ' colspan=3>' : '>';
134 $OUT .= '<table width="100%">';
135 foreach my $ext_desc ( @{$line->{'ext_description'} } ) {
137 '<tr class="invoice_extdesc">'.
138 '<td align="left">- '. $ext_desc. '</td>'.
141 $OUT .= '</table></td><td></td></tr>';
146 if (scalar(@sections) > 1) {
147 my $style = 'border-top: 3px solid #000000;'.
148 'border-bottom: 3px solid #000000;';
150 '<tr class="invoice_totaldesc">'.
151 qq(<td style="$style"> </td>).
152 qq(<td align="left" style="$style">).
153 $section->{'description'}. ' Total </td>'.
154 qq(<td align="right" style="$style">).
155 $section->{'subtotal'}. '</td>'.
160 if ($section->{'posttotal'}) {
161 $OUT .= '<tr><td align="right" colspan=3>';
163 '<p><font size="+1">'. $section->{'posttotal'}.
166 $OUT .= '</td></tr>';
171 my $style = 'border-top: 3px solid #000000;';
174 foreach my $line ( @total_items ) {
176 $style .= 'border-bottom: 3px solid #000000;'
177 if ++$linenum == scalar(@total_items);
180 '<tr class="invoice_totaldesc">'.
181 qq(<td style="$style"> </td>).
182 qq(<td align="left" style="$style").
183 ( $unitprices ? ' colspan=3>' : '>' ).
184 $line->{'total_item'}. '</td>'.
185 qq(<td align="right" style="$style">).
186 $line->{'total_amount'}. '</td>'.
200 <hr NOSHADE SIZE=2 COLOR="#000000">
201 <p align="center"><%= $footer %>