[freeside-commits] branch master updated. ee10b43452faa00be4ce3b06cac7596655fa5988

Mark Wells mark at 420.am
Wed Jul 29 16:56:04 PDT 2015


The branch, master has been updated
       via  ee10b43452faa00be4ce3b06cac7596655fa5988 (commit)
      from  3ac62d97d20400c10a1812b33617bf902f595626 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ee10b43452faa00be4ce3b06cac7596655fa5988
Author: Mark Wells <mark at freeside.biz>
Date:   Wed Jul 29 16:32:07 2015 -0700

    fix display of tax section on summary invoices, #37417, from #32223

diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 37dcf2a..757701a 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -1278,11 +1278,17 @@ sub print_generic {
 
     if ( $multisection ) {
       if ( $taxtotal > 0 ) {
+        # there are taxes, so prepare the section to be displayed.
+        # $taxtotal already includes any line items that were already in the
+        # section (fees, taxes that are charged as packages for some reason).
+        # also set 'summarized' to false so that this isn't a summary-only
+        # section.
         $tax_section->{'subtotal'} = $other_money_char.
                                      sprintf('%.2f', $taxtotal);
         $tax_section->{'pretotal'} = 'New charges sub-total '.
                                      $total->{'total_amount'};
         $tax_section->{'description'} = $self->mt($tax_description);
+        $tax_section->{'summarized'} = '';
 
         # append it if it's not already there
         if ( !grep $tax_section, @sections ) {
@@ -2496,7 +2502,6 @@ sub _items_sections {
       foreach my $sectionname (keys %{ $s->{$locationnum} }) {
         my $section = {
                         'subtotal'    => $s->{$locationnum}{$sectionname},
-                        'post_total'  => $post_total,
                         'sort_weight' => 0,
                       };
         if ( $locationnum ) {

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/Template_Mixin.pm |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list