diff options
Diffstat (limited to 'conf/invoice_html')
-rw-r--r-- | conf/invoice_html | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/conf/invoice_html b/conf/invoice_html index 935c94346..1241f870e 100644 --- a/conf/invoice_html +++ b/conf/invoice_html @@ -327,6 +327,61 @@ </table> <br><br> +<%= + + my @location_summary_sections = + grep { + ref $_->{location} + && $_->{locationnum} + && $_->{description} + && $_->{description} ne $finance_section + } @sections; + + if ( $multisection eq 'location' && scalar(@location_summary_sections) > 1 ) { + + $OUT .= ' + <hr> + <table width="100%"> + <tr> + <td> + <p class="allcaps"> + <b>'.emt('Summary Of New Charges By Location').'</b> + <p> + </td> + </tr> + </table> + + <table class="invoice_longtable" cellspacing="0" width="100%"> + <thead> + <tr> + <th></th> + <th align="left">'.emt('Location').'</th> + <th align="right">'.emt('Amount').'</th> + </tr> + </thead> + <tbody> + '; + + for my $section (@location_summary_sections) { + next unless $section->{description}; + $OUT .= ' + <tr class="invoice_desc_more"> + <td></td> + <td>'.$section->{description}.'</td> + <td align="right">'. $section->{subtotal} .'</td> + </tr> + '; + } + + $OUT .= ' + <tr class="invoice_desc"><td> </td><td> </td><td> </td></tr> + </tbody> + </table> + <br><br> + '; + +} %> + <%= length($summary) ? '' : ( $smallernotes |