show a total range for prorate quotations
authorIvan Kohler <ivan@freeside.biz>
Thu, 29 Jun 2017 20:42:20 +0000 (13:42 -0700)
committerIvan Kohler <ivan@freeside.biz>
Thu, 29 Jun 2017 20:42:20 +0000 (13:42 -0700)
FS/FS/Template_Mixin.pm

index 652756e..70bc4fb 100644 (file)
@@ -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;