From 3081639bd119c6d281ef23139649b2e73ba62754 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 14 May 2005 16:27:26 +0000 Subject: html invoices! http://chris-linfoot.net/d6plinks/CWLT-5VZD4Y http://www.dsv.su.se/~jpalme/ietf/mhtml.html ftp://ftp.dsv.su.se/users/jpalme/draft-ietf-mhtml-info.txt http://mailformat.dan.info/headers/mime.html http://www.faqs.org/rfcs/rfc2392.html http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdosys/html/_cdosys_content-type_multipart.asp (MIME is hard, let's go shopping!) --- conf/invoice_html | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ conf/logo.png | Bin 0 -> 4887 bytes 2 files changed, 131 insertions(+) create mode 100644 conf/invoice_html create mode 100644 conf/logo.png (limited to 'conf') diff --git a/conf/invoice_html b/conf/invoice_html new file mode 100644 index 000000000..7b8a85bcc --- /dev/null +++ b/conf/invoice_html @@ -0,0 +1,131 @@ + + +
+ + + + + + + + + + + + + + +
"><%= $returnaddress %> + + + + + + + + + + + +
+ Invoice date
+ <%= $date %> +
+ + Invoice number
+ <%= $invnum %> +
  + INVOICE +  
+
+ + <%= $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=''; + + } + + %> +
RefDescriptionAmount
'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'amount'}. '
- '. $ext_desc. '
 ). + $line->{'total_item'}. '). + $line->{'total_amount'}. '
+

+ + +<%= $notes %> + +


+

<%= $footer %> + +

diff --git a/conf/logo.png b/conf/logo.png new file mode 100644 index 000000000..1e415e6d8 Binary files /dev/null and b/conf/logo.png differ -- cgit v1.2.1