X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_bill_pkg.pm;h=6925de8b372cc1397d8905a6b9bf6928129b4f93;hp=b481e92a7cfa5d305933704b75ca3723e3cd40e7;hb=0269c850cfefc00d5da255f88c63a314e1ab6cd0;hpb=9333aeac70f034bb3a253a87d7d20a60878c4d47 diff --git a/FS/FS/cust_bill_pkg.pm b/FS/FS/cust_bill_pkg.pm index b481e92a7..6925de8b3 100644 --- a/FS/FS/cust_bill_pkg.pm +++ b/FS/FS/cust_bill_pkg.pm @@ -139,7 +139,7 @@ sub insert { 'billpkgnum' => $self->billpkgnum, 'format' => (ref($detail) ? $detail->[0] : '' ), 'detail' => (ref($detail) ? $detail->[1] : $detail ), - 'charge' => (ref($detail) ? $detail->[2] : '' ), + 'amount' => (ref($detail) ? $detail->[2] : '' ), 'classnum' => (ref($detail) ? $detail->[3] : '' ), }; $error = $cust_bill_pkg_detail->insert; @@ -481,13 +481,13 @@ sub usage { @values = map { $_->[2] } grep { ref($_) && ( defined($classnum) ? $_->[3] eq $classnum : 1 ) } - $self->get('details'); + @{ $self->get('details') }; }else{ my $hashref = { 'billpkgnum' => $self->billpkgnum }; $hashref->{ 'classnum' } = $classnum if defined($classnum); - @values = map { $_->charge } qsearch('cust_bill_pkg_detail', $hashref); + @values = map { $_->amount } qsearch('cust_bill_pkg_detail', $hashref); }