X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=cd348274fd94f372fd369e2af926e0ec0fac863d;hp=df4674b6a25f0644e22ce449bb7deed8b2a5cb1e;hb=4fdaf2e78de5e32772af84b010de28656d8422fb;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2 diff --git a/conf/invoice_html b/conf/invoice_html index df4674b6a..cd348274f 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -11,6 +11,7 @@ .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 } +.allcaps { text-transform:uppercase }
@@ -23,26 +24,26 @@ - @@ -64,7 +65,7 @@ %> <%= $ship_enable ? (' @@ -86,8 +95,11 @@
- Invoice date
+ <%= emt('Invoice date') %>
<%= $date %>
- Invoice #
+ <%= emt('Invoice #') %>
<%= $invnum %>
- Customer #
+ <%= emt('Customer #') %>
<%= $custnum %>
  - <%= $notice_name ? substr($notice_name, 0, 1) : 'I' %><%= $notice_name ? uc(substr($notice_name, 1)) : 'NVOICE' %> + + <%= substr(emt($notice_name),0,1) %><%= substr(emt($notice_name),1) %>  
'. - join('
',grep length($_), 'Service Address', + join('
',grep length($_), ''.emt('Service Address').'', $ship_company, $ship_address1, $ship_address2, @@ -78,7 +79,15 @@ : '' %>
- Terms: <%= $terms %>
+ <%= + if($barcode_cid) { + $OUT .= qq!
!; + } + elsif($barcode_img) { + $OUT .= qq!
!; + } + %> + <%= $terms ? emt('Terms') . ": $terms" : '' %>
<%= $po_line %>
<%= $summary %> <%= + my $notfirst = 0; + my $columncount = $unitprices ? 5 : 3; foreach my $section ( grep { !$summary || $_->{description} ne $finance_section } @sections ) { if ($section->{'pretotal'} && !$summary) { + $OUT .= '
' if $notfirst; $OUT .= '
'. '

'. @@ -95,40 +107,37 @@ ''. uc(substr($section->{'pretotal'},1)). ''. '

'. - '

'; + ''; } unless ($section->{'summarized'}) { + $OUT .= '' if ( $notfirst || $section->{'pretotal'} && !$summary ); $OUT .= '
'; - if ($section->{'description'}) { - $OUT .= - '

'. uc(substr($section->{'description'},0,1)). - ''. uc(substr($section->{'description'},1)). + my $sectionhead = $section->{'description'} || emt('Charges'); + $OUT .= + '

'. substr($sectionhead,0,1). + ''. substr($sectionhead,1). ''. - '

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

CHARGES'. - '

'; - } - $OUT .= '

'; + '

'. + ''; $OUT .= ''. ''; if ($section->{header_generator}) { - $OUT .= &{$section->{header_generator}}(); + my $header = &{$section->{header_generator}}(); + $OUT .= $header; + $columncount = scalar(my @array = split /<\/th>'. - ( $unitprices - ? ''. - '' - : '' - ). - ''; + $OUT .= ''. + ''. + ( $unitprices + ? ''. + '' + : '' ). + ''; } - ''; + $OUT .= ''; my $lastref = 0; foreach my $line ( @@ -149,8 +158,8 @@ ( $line->{'ref'} ne $lastref ? $line->{'ref'} : '' ). ''. ''. ( $unitprices - ? ''. - '' + ? ''. + '' : '' ). @@ -159,24 +168,30 @@ $OUT .= ''; $lastref = $line->{'ref'}; if ( @{$line->{'ext_description'} } ) { - $OUT .= '' : '>'; - $OUT .= '
DescriptionUnit PriceQuantityAmount' . emt('Ref') . '' . emt('Description') . '' . emt('Unit Price') . '' . emt('Quantity') . '' . emt('Amount') . '
'. $line->{'description'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. ''. $line->{'unit_amount'}. ''. $line->{'quantity'}. '
'; + unless ( $section->{description_generator} ) { + $OUT .= '{'ext_description'} } ) { $OUT .= ''. + ( $section->{'description_generator'} ? '' : '' ). ''. '' } - $OUT .= '
/i ? '' : 'colspan=99' ). '>'. '  '. $ext_desc. '
'; + unless ( $section->{description_generator} ) { + $OUT .= ''; + } + $OUT .= ''; } } - if (scalar(@sections) > 1) { + if ($section->{'description'} || $multisection and !$section->{no_subtotal}) { my $style = 'border-top: 3px solid #000000;'. 'border-bottom: 3px solid #000000;'; $OUT .= @@ -187,7 +202,7 @@ } else { $OUT .= qq(' : '>' ). - $section->{'description'}. ' Total '. + $section->{'description'}. ' ' . emt('Total') . ''. qq(). $section->{'subtotal'}. ''; } @@ -195,7 +210,7 @@ } } if ($section->{'posttotal'}) { - $OUT .= ''; + $OUT .= ''; $OUT .= '

'. $section->{'posttotal'}. ''. @@ -203,6 +218,8 @@ $OUT .= ''; } + $notfirst++; + } my $style = 'border-top: 3px solid #000000;'; @@ -211,7 +228,7 @@ foreach my $line ( @total_items ) { $style .= 'border-bottom: 3px solid #000000;' - if ++$linenum == scalar(@total_items); + if ++$linenum == scalar(@total_items) - ( $balance_due_below_line ? 1 : 0 ); $OUT .= ''; @@ -219,8 +236,8 @@ $OUT .= &{$section->{total_line_generator}}($line); } else { $OUT .= qq( ). - qq(' : '>' ). + qq('. $line->{'total_item'}. ''. qq(). $line->{'total_amount'}. '';