X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=conf%2Finvoice_html;h=7ee0fdc19380bf9ab2ffd87bbd0f616da455a725;hb=06187016fd78ba41fb82846b9e8d461405f316b6;hp=32e5362f9d3385c81a6989191cb3a2e49e3254e7;hpb=673b9a458d9138523026963df6fa3b4683e09bae;p=freeside.git diff --git a/conf/invoice_html b/conf/invoice_html index 32e5362f9..7ee0fdc19 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -3,37 +3,46 @@ .invoice_header { font-size: 10pt } .invoice_headerright TH { border-top: 2px solid #000000; border-bottom: 2px solid #000000 } .invoice_headerright TD { font-size: 10pt; empty-cells: show } +.invoice_summary TH { border-bottom: 2px solid #000000 } +.invoice_summary TD { font-size: 10pt; empty-cells: show } .invoice_longtable table { cellspacing: none } .invoice_longtable TH { border-top: 2px solid #000000; border-bottom: 1px solid #000000; padding-left: none; padding-right: none; font-size: 10pt } .invoice_desc TD { border-top: 2px solid #000000; font-weight: bold; font-size: 10pt } +.invoice_desc_more TD { font-weight: bold; font-size: 10pt } .invoice_extdesc TD { font-size: 8pt } .invoice_totaldesc TD { font-size: 10pt; empty-cells: show } -
+
- + '; + } + } + + + if (scalar(@sections) > 1) { + my $style = 'border-top: 3px solid #000000;'. + 'border-bottom: 3px solid #000000;'; + $OUT .= + ''. + qq(). + qq('. + qq('. + '' + ; + } + } + if ($section->{'posttotal'}) { + $OUT .= ''; } + } my $style = 'border-top: 3px solid #000000;'; @@ -101,7 +205,8 @@ $OUT .= ''. qq(). - qq('. qq('. @@ -116,14 +221,7 @@
">"> <%= $returnaddress %> - - + + - @@ -54,6 +63,20 @@ ) %> + <%= $ship_enable ? ('' + ) + : '' + %>
+ Invoice date
<%= $date %>
- Invoice number
+
+ Invoice #
<%= $invnum %>
+ + Customer #
+ <%= $custnum %> +
  - INVOICE + + <%= $notice_name ? substr($notice_name, 0, 1) : 'I' %><%= $notice_name ? uc(substr($notice_name, 1)) : 'NVOICE' %>  
'. + join('
',grep length($_), 'Service Address', + $ship_company, + $ship_address1, + $ship_address2, + "$ship_city, $ship_state $ship_zip", + $ship_country, + ' ', + ' ', + ). + '
Terms: <%= $terms %>
<%= $po_line %> @@ -61,33 +84,114 @@
+ <%= $summary %> + <%= + foreach my $section ( grep { !$summary || $_->{description} ne $finance_section } @sections ) { + if ($section->{'pretotal'} && !$summary) { + $OUT .= + '
'. + '

'. + uc(substr($section->{'pretotal'},0,1)). + ''. uc(substr($section->{'pretotal'},1)). + ''. + '

'. + '

'; + } + unless ($section->{'summarized'}) { + $OUT .= '
'; + if ($section->{'description'}) { + $OUT .= + '

'. uc(substr($section->{'description'},0,1)). + ''. uc(substr($section->{'description'},1)). + ''. + '

'; + }else{ + $OUT .= + '

CHARGES'. + '

'; + } + $OUT .= '

'; -

CHARGES -

- - - - - - - <%= - - foreach my $line ( @detail_items ) { - $OUT .= - ''. - ''. - ''. - ''. - '' - ; - foreach my $ext_desc ( @{$line->{'ext_description'} } ) { $OUT .= - ''. - ''. - ''. - ''. - '' + '
RefDescriptionAmount
'. $line->{'ref'}. ''. $line->{'description'}. ''. $line->{'amount'}. '
- '. $ext_desc. '
'. + ''. + ''. + ''. + ( $unitprices + ? ''. + '' + : '' + ). + ''. + ''; + + my $lastref = 0; + foreach my $line ( + grep { ( scalar(@sections) > 1 + ? $section->{'description'} eq $_->{'section'}->{'description'} + : 1 + ) } + @detail_items ) + { + $OUT .= + ''. + ''. + ''. + ( $unitprices + ? ''. + '' + : '' + ). + + ''. + '' + ; + $lastref = $line->{'ref'}; + if ( @{$line->{'ext_description'} } ) { + $OUT .= '' : '>'; + $OUT .= '
RefDescriptionUnit PriceQuantityAmount
'. + ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'amount'}. '
'; + foreach my $ext_desc ( @{$line->{'ext_description'} } ) { + $OUT .= + ''. + ''. + '' + } + $OUT .= '
/i ? '' : 'colspan=99' ). '>'. + '  '. $ext_desc. + '

 ' : '>' ). + $section->{'description'}. ' Total ). + $section->{'subtotal'}. '
'; + $OUT .= + '

'. $section->{'posttotal'}. + ''. + '

'; + $OUT .= '

 ). + qq(' : '>' ). $line->{'total_item'}. '). $line->{'total_amount'}. '


- -<%= $notes %> +<%= length($summary) ? '' : $notes %>

<%= $footer %>