X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=conf%2Finvoice_html;h=1241f870e98dfbd12ab7ec2b0369082a13233c0a;hp=7cadd7c37df0a62a65b2ab6c86a9213b138058e0;hb=38e34bbc53a4222c7507e95914e1364a5a74623f;hpb=11ca9a51a76837f1821b2b0e8972c78bf221c6a1 diff --git a/conf/invoice_html b/conf/invoice_html index 7cadd7c37..1241f870e 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -34,6 +34,7 @@ width: 100%; height: 100%; display: table; + pointer-events: none; } .watermark-content { display: table-cell; @@ -50,8 +51,8 @@ - + +
"> <%= $returnaddress %>"> @@ -82,9 +83,11 @@
+ - @@ -131,7 +134,7 @@ my $columncount = $unitprices ? 5 : 3; foreach my $section ( grep { !$summary || $_->{description} ne $finance_section } @sections ) { if ($section->{'pretotal'} && !$summary) { - $OUT .= '
+ <%= $payname %>
@@ -119,7 +122,7 @@ $OUT .= qq!
!; } %> - <%= $terms ? emt('Terms') . ": $terms" : '' %>
+ <%= $terms ? emt('Terms') . ': ' . emt($terms) : '' %>
<%= $po_line %>
' if $notfirst; + $OUT .= '' if $notfirst++; $OUT .= ''; } unless ($section->{'summarized'}) { - $OUT .= '
'. '

'. @@ -142,7 +145,10 @@ '

' if ( $notfirst || $section->{'pretotal'} && !$summary ); + if ( $notfirst || $section->{'pretotal'} && !$summary ) { + $OUT .= ''; + $notfirst = 1; + } $OUT .= ''. - ( $unitprices - ? ''. - '' - : '' ). - ''; + my @headings = ( '', 'Description', 'Amount' ); + my @aligns = ( 'center', 'left', 'right' ); + if ( $unitprices ) { + splice @headings, 2, 0, 'Unit Price', 'Quantity'; + splice @aligns, 2, 0, 'right', 'right'; + } + if ( $section->{usage_section} ) { + @headings = ( '', 'Description', 'Calls', 'Duration', 'Amount' ); + @aligns = ( '', 'left', 'right', 'right', 'right' ); + $columncount = 5; + } + + while ( @headings ) { + my $heading = shift @headings; + $heading = emt($heading) if $heading; + my $align = shift @aligns; + $OUT .= ' + '; + } } - $OUT .= ''; + + $OUT .= ''; my $lastref = 0; foreach my $line ( @@ -196,6 +215,17 @@ if ( $section->{description_generator} ) { $OUT .= ' + + + + + + '; } else { my $class = 'invoice_desc_more'; if ( ($line->{'ref'} || 0) ne $lastref ) { @@ -256,7 +286,7 @@ } $OUT .= ''; } - } + } # if !$section->{summarized} if ($section->{'posttotal'}) { $OUT .= ''; } - - $notfirst++; - } my $style = 'border-top: 3px solid #000000;'; @@ -300,6 +327,61 @@
'; $OUT .= '

'; my $sectionhead; @@ -175,15 +181,28 @@ $OUT .= $header; $columncount = scalar(my @array = split /<\/th>

' . emt('Description') . '' . emt('Unit Price') . '' . emt('Quantity') . '' . emt('Amount') . '' . $heading . '
' . $line->{'description'} . '' . $line->{'quantity'} . '' . $minutes . 'm ' . $seconds . 's' . '' . $line->{'amount'} . '
'; $OUT .= @@ -265,9 +295,6 @@ '

'; $OUT .= '



+<%= + + my @location_summary_sections = + grep { + ref $_->{location} + && $_->{locationnum} + && $_->{description} + && $_->{description} ne $finance_section + } @sections; + + if ( $multisection eq 'location' && scalar(@location_summary_sections) > 1 ) { + + $OUT .= ' +
+ + + + +
+

+ '.emt('Summary Of New Charges By Location').' +

+

+ + + + + + + + + + + '; + + for my $section (@location_summary_sections) { + next unless $section->{description}; + $OUT .= ' + + + + + + '; + } + + $OUT .= ' + + +
'.emt('Location').''.emt('Amount').'
'.$section->{description}.''. $section->{subtotal} .'
   
+

+ '; + +} %> + <%= length($summary) ? '' : ( $smallernotes