[freeside-commits] freeside/FS/FS cust_bill_ApplicationCommon.pm,
1.6, 1.7
Ivan,,,
ivan at wavetail.420.am
Mon Feb 5 15:48:33 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv24372
Modified Files:
cust_bill_ApplicationCommon.pm
Log Message:
fix payment/credit line-item application erroring out on tax applications
Index: cust_bill_ApplicationCommon.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_ApplicationCommon.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cust_bill_ApplicationCommon.pm 5 Feb 2007 22:12:45 -0000 1.6
+++ cust_bill_ApplicationCommon.pm 5 Feb 2007 23:48:30 -0000 1.7
@@ -178,7 +178,15 @@
# - apply based on weights...
my $weight_col = $self->_app_part_pkg_weight_column;
- my @openweight = map { [ $_, ($_->cust_pkg->part_pkg->$weight_col()||0) ] }
+ my @openweight = map {
+ my $open = $_;
+ my $cust_pkg = $open->cust_pkg;
+ my $weight =
+ $cust_pkg
+ ? ( $cust_pkg->part_pkg->$weight_col() || 0 )
+ : 0; #default or per-tax weight?
+ [ $open, $weight ]
+ }
@open;
my %saw = ();
More information about the freeside-commits
mailing list