i thought i fixed this already
[freeside.git] / conf / invoice_html
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 }
11 </STYLE>
12
13 <table class="invoice" bgcolor="#ffffff" WIDTH=768 CELLSPACING=8><tr><td>
14
15   <table class="invoice_header" width="100%">
16     <tr>
17      <td><img src="<%= $cid ? "cid:$cid" : "cust_bill-logo.cgi?$template" %>"></td>
18      <td align="left"><%= $returnaddress %></td>
19       <td align="right">
20         <table CLASS="invoice_headerright" cellspacing=0>
21           <tr>
22             <td align="right">
23               Invoice&nbsp;date<BR>
24               <B><%= $date %></B>
25             </td>
26             <td>
27             </td>
28             <td align="left">
29               Invoice&nbsp;number<BR>
30               <B><%= $invnum %></B>
31             </td>
32           </tr>
33           <tr>
34             <th colspan=3 align="center">
35               <FONT SIZE="+3">I</FONT><FONT SIZE="+2">NVOICE</FONT>
36             </th>
37           </tr>
38         </table>
39       </td>
40     </tr>
41
42     <tr>
43       <td>
44       </td>
45       <td align="left">
46         <b><%= $payname %></b><BR>
47         <%= join('<BR>', grep length($_), $company,
48                                           $address1,
49                                           $address2,
50                                           "$city,&nbsp;$state&nbsp;&nbsp;$zip",
51                                           $country,
52                 )
53         %>
54       </td>
55       <td align="right">
56         Terms: <%= $terms %><BR>
57         <%= $po_line %>
58       </td>
59     </tr>
60
61   </table>
62
63   <p><b><font size="+1">C</font><font size="+0">HARGES</font></b>
64   <p>
65   <table class="invoice_longtable" CELLSPACING=0 WIDTH="100%">
66     <tr>
67       <th align="center">Ref</th>
68       <th align="left">Description</th>
69       <th align="right">Amount</th>
70     </tr>
71     <%=
72
73       foreach my $line ( @detail_items ) {
74         $OUT .=
75           '<tr class="invoice_desc">'.
76             '<td align="center">'. $line->{'ref'}. '</td>'.
77             '<td align="left">'. $line->{'description'}. '</td>'.
78             '<td align="right">'. $line->{'amount'}. '</td>'.
79           '</tr>'
80         ;
81         foreach my $ext_desc ( @{$line->{'ext_description'} } ) {
82           $OUT .=
83             '<tr class="invoice_extdesc">'.
84               '<td></td>'.
85               '<td align="left">-&nbsp;'. $ext_desc. '</td>'.
86               '<td></td>'.
87             '</tr>'
88         }
89       }
90
91       my $style = 'border-top: 3px solid #000000;';
92       my $linenum = 0;
93
94       foreach my $line ( @total_items ) {
95
96         $style .= 'border-bottom: 3px solid #000000;'
97           if ++$linenum == scalar(@total_items);
98
99         $OUT .=
100           '<tr class="invoice_totaldesc">'.
101             qq(<td style="$style">&nbsp;</td>).
102             qq(<td align="left" style="$style">).
103               $line->{'total_item'}. '</td>'.
104             qq(<td align="right" style="$style">).
105               $line->{'total_amount'}. '</td>'.
106           '</tr>'
107         ;
108
109         $style='';
110
111       }
112
113     %>
114   </table>
115   <br><br>
116
117 <!--  <p><b><font size="+1">N</font><font size="+0">OTES</font></b>
118
119   <ol>
120     <li>Please make your check payable to <b>Ivan Kohler</b>
121     <li>If you have any questions please email or telephone.
122   </ol>
123 -->
124 <%= $notes %>
125
126   <hr NOSHADE SIZE=2 COLOR="#000000">
127   <p align="center"><%= $footer %>
128
129 </td></tr></table>