From: Ivan Kohler Date: Thu, 29 Jun 2017 20:42:16 +0000 (-0700) Subject: show a total range for prorate quotations X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=8f3f959d7854ebe12b57fbd48de4c9939ffb6d4d;p=freeside.git show a total range for prorate quotations --- diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index b3421e9f7..2c094c2f4 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;