[freeside-commits] freeside/FS/FS Schema.pm, 1.164, 1.165 cust_bill_pkg.pm, 1.38, 1.39 cust_bill_pkg_detail.pm, 1.8, 1.9
Ivan,,,
ivan at wavetail.420.am
Fri Sep 11 08:51:40 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv13197
Modified Files:
Schema.pm cust_bill_pkg.pm cust_bill_pkg_detail.pm
Log Message:
fix (hopefully the rest of the) fallout from rating CDRs to sub-penny amounts
Index: cust_bill_pkg_detail.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_pkg_detail.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- cust_bill_pkg_detail.pm 17 Aug 2009 20:48:27 -0000 1.8
+++ cust_bill_pkg_detail.pm 11 Sep 2009 15:51:38 -0000 1.9
@@ -118,7 +118,8 @@
$self->ut_numbern('detailnum')
|| $self->ut_foreign_key('billpkgnum', 'cust_bill_pkg', 'billpkgnum')
- || $self->ut_moneyn('amount')
+ #|| $self->ut_moneyn('amount')
+ || $self->ut_float('amount')
|| $self->ut_enum('format', [ '', 'C' ] )
|| $self->ut_text('detail')
|| $self->ut_foreign_keyn('classnum', 'usage_class', 'classnum')
Index: Schema.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Schema.pm,v
retrieving revision 1.164
retrieving revision 1.165
diff -u -d -r1.164 -r1.165
--- Schema.pm 20 Aug 2009 04:03:34 -0000 1.164
+++ Schema.pm 11 Sep 2009 15:51:38 -0000 1.165
@@ -559,7 +559,7 @@
'billpkgnum', 'int', 'NULL', '', '', '', # should not be nullable
'pkgnum', 'int', 'NULL', '', '', '', # deprecated
'invnum', 'int', 'NULL', '', '', '', # deprecated
- 'amount', @money_typen, '', '',
+ 'amount', 'decimal', 'NULL', '10,4', '', '',
'format', 'char', 'NULL', 1, '', '',
'classnum', 'int', 'NULL', '', '', '',
'phonenum', 'varchar', 'NULL', 15, '', '',
Index: cust_bill_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_pkg.pm,v
retrieving revision 1.38
retrieving revision 1.39
diff -u -d -r1.38 -r1.39
--- cust_bill_pkg.pm 17 Aug 2009 20:48:27 -0000 1.38
+++ cust_bill_pkg.pm 11 Sep 2009 15:51:38 -0000 1.39
@@ -111,7 +111,7 @@
return $error;
}
- if ( defined dbdef->table('cust_bill_pkg_detail') && $self->get('details') ) {
+ if ( $self->get('details') ) {
foreach my $detail ( @{$self->get('details')} ) {
my $cust_bill_pkg_detail = new FS::cust_bill_pkg_detail {
'billpkgnum' => $self->billpkgnum,
@@ -124,18 +124,18 @@
$error = $cust_bill_pkg_detail->insert;
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
- return $error;
+ return "error inserting cust_bill_pkg_detail: $error";
}
}
}
- if ( defined dbdef->table('cust_bill_pkg_display') && $self->get('display') ){
+ if ( $self->get('display') ) {
foreach my $cust_bill_pkg_display ( @{ $self->get('display') } ) {
$cust_bill_pkg_display->billpkgnum($self->billpkgnum);
$error = $cust_bill_pkg_display->insert;
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
- return $error;
+ return "error inserting cust_bill_pkg_display: $error";
}
}
}
@@ -146,7 +146,7 @@
$error = $cust_tax_exempt_pkg->insert;
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
- return $error;
+ return "error inserting cust_tax_exempt_pkg: $error";
}
}
}
@@ -160,7 +160,7 @@
warn $error;
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
- return $error;
+ return "error inserting cust_bill_pkg_tax_location: $error";
}
}
}
@@ -173,7 +173,7 @@
warn $error;
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
- return $error;
+ return "error inserting cust_bill_pkg_tax_rate_location: $error";
}
}
}
@@ -185,7 +185,7 @@
warn $error;
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
- return $error;
+ return "error replacing cust_tax_adjustment: $error";
}
}
More information about the freeside-commits
mailing list