[freeside-commits] branch FREESIDE_3_BRANCH updated. 730cb97fdb4f472be9d58ecb4638e2a173602e4f

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


The branch, FREESIDE_3_BRANCH has been updated
       via  730cb97fdb4f472be9d58ecb4638e2a173602e4f (commit)
      from  71ec18a5da6072ae52bcbcca22b4ef7a5290f7ba (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 730cb97fdb4f472be9d58ecb4638e2a173602e4f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Thu Jun 29 13:42:20 2017 -0700

    show a total range for prorate quotations

diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 652756e..70bc4fb 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -1375,7 +1375,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