diff options
author | jeff <jeff> | 2009-11-24 17:07:01 +0000 |
---|---|---|
committer | jeff <jeff> | 2009-11-24 17:07:01 +0000 |
commit | 1495621fe4758b49cbece5be9752907b76ee0984 (patch) | |
tree | 569cf18f19c87ac81372095bab7c4c734d3b5f17 | |
parent | fd76ba41f6e7279f6cfa6a65f675898ba08f05bb (diff) |
cope with sections lacking a pkg_category
-rw-r--r-- | FS/FS/cust_bill.pm | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index cf339a8c7..c7b4df783 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -3213,8 +3213,11 @@ sub _items_sections { push @$late, map { { 'description' => &{$escape}($_), 'subtotal' => $late_subtotal{$_}, 'post_total' => 1, - 'sort_weight' => _pkg_category($_)->weight, - (_pkg_category($_)->condense + 'sort_weight' => ( _pkg_category($_) + ? _pkg_category($_)->weight + : 0 + ), + ((_pkg_category($_) && _pkg_category($_)->condense) ? $self->_condense_section($format) : () ), @@ -3233,8 +3236,11 @@ sub _items_sections { 'subtotal' => $subtotal{$_}, 'summarized' => $not_tax{$_} ? '' : 'Y', 'tax_section' => $not_tax{$_} ? '' : 'Y', - 'sort_weight' => _pkg_category($_)->weight, - (_pkg_category($_)->condense + 'sort_weight' => ( _pkg_category($_) + ? _pkg_category($_)->weight + : 0 + ), + ((_pkg_category($_) && _pkg_category($_)->condense) ? $self->_condense_section($format) : () ), |