diff options
author | Ivan Kohler <ivan@freeside.biz> | 2017-06-29 13:42:20 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2017-06-29 13:42:20 -0700 |
commit | 730cb97fdb4f472be9d58ecb4638e2a173602e4f (patch) | |
tree | 35b94730d12ad3e901364b3f4fb7fc8f1de903a6 | |
parent | 71ec18a5da6072ae52bcbcca22b4ef7a5290f7ba (diff) |
show a total range for prorate quotations
-rw-r--r-- | FS/FS/Template_Mixin.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 652756e1c..70bc4fb5b 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; |