[freeside-commits] branch FREESIDE_4_BRANCH updated. 8f3f959d7854ebe12b57fbd48de4c9939ffb6d4d

Ivan ivan at 420.am
Thu Jun 29 13:42:27 PDT 2017


The branch, FREESIDE_4_BRANCH has been updated
       via  8f3f959d7854ebe12b57fbd48de4c9939ffb6d4d (commit)
      from  24769724812b79a4fbc8e9c60a3079189f80e6c3 (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 8f3f959d7854ebe12b57fbd48de4c9939ffb6d4d
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Jun 29 13:42:16 2017 -0700

    show a total range for prorate quotations

diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index b3421e9..2c094c2 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -1380,7 +1380,16 @@ sub print_generic {
     foreach ( @new_total_items ) {
       my ($item, $amount) = ($_->{'total_item'}, $_->{'total_amount'});
       $_->{'total_item'}   = &$embolden_function( $item );
+
+      if ( ref($amount) ) {
+        $_->{'total_amount'} = &$embolden_function(
+                                 $other_money_char.$amount->[0]. ' to '.
+                                 $other_money_char.$amount->[1]
+                               );
+      } else {
       $_->{'total_amount'} = &$embolden_function( $other_money_char.$amount );
+      }
+
       # but if it's multisection, don't append to @total_items. the adjust
       # section has all this stuff
       push @total_items, $_ if !$multisection;

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

Summary of changes:
 FS/FS/Template_Mixin.pm |    9 +++++++++
 1 file changed, 9 insertions(+)




More information about the freeside-commits mailing list