projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
baf61fc
)
cope with sections lacking a pkg_category
author
jeff
<jeff>
Tue, 24 Nov 2009 17:05:49 +0000
(17:05 +0000)
committer
jeff
<jeff>
Tue, 24 Nov 2009 17:05:49 +0000
(17:05 +0000)
FS/FS/cust_bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_bill.pm
b/FS/FS/cust_bill.pm
index
cf339a8
..
c7b4df7
100644
(file)
--- 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,
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)
: ()
),
? $self->_condense_section($format)
: ()
),
@@
-3233,8
+3236,11
@@
sub _items_sections {
'subtotal' => $subtotal{$_},
'summarized' => $not_tax{$_} ? '' : 'Y',
'tax_section' => $not_tax{$_} ? '' : 'Y',
'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)
: ()
),
? $self->_condense_section($format)
: ()
),