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 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 conf/invoice_html (limited to 'conf/invoice_html') 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 %> + +

-- cgit v1.2.1 From df185d34f354c5788e8c4693182b7689a3333839 Mon Sep 17 00:00:00 2001 From: ivan Date: Sat, 14 May 2005 17:04:55 +0000 Subject: html invoices: when displaying, use the actual logo from the conf dir - same as the emailed copy --- conf/invoice_html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf/invoice_html') diff --git a/conf/invoice_html b/conf/invoice_html index 7b8a85bcc..e4e145e41 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -14,7 +14,7 @@ - + -- cgit v1.2.1
">"> <%= $returnaddress %> -- cgit v1.2.1 From 0452430dac4d639796581be77e8674207653f42b Mon Sep 17 00:00:00 2001 From: ivan Date: Thu, 9 Jun 2005 06:56:31 +0000 Subject: agent-specific logos for html invoices too --- conf/invoice_html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'conf/invoice_html') diff --git a/conf/invoice_html b/conf/invoice_html index e4e145e41..32e5362f9 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -14,7 +14,7 @@
- + -- cgit v1.2.1 From a4fcab2fecfce70e38c7f150e5a870a0f60d1136 Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 21 Oct 2005 13:15:56 +0000 Subject: brainfart --- conf/invoice_html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'conf/invoice_html') diff --git a/conf/invoice_html b/conf/invoice_html index fde0e159f..32e5362f9 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -31,9 +31,11 @@ - + +
">"> <%= $returnaddress %> -- cgit v1.2.1 From 51965252466393f61ec23a93a839b487323cf07c Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 21 Oct 2005 12:50:20 +0000 Subject: i thought i fixed this already --- conf/invoice_html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'conf/invoice_html') diff --git a/conf/invoice_html b/conf/invoice_html index 32e5362f9..fde0e159f 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -31,11 +31,9 @@ - - -
  + INVOICE  
+   INVOICE