[freeside-commits] freeside/FS/FS cust_main.pm, 1.464.2.38, 1.464.2.39
Ivan,,,
ivan at wavetail.420.am
Mon Aug 9 09:20:42 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv15533
Modified Files:
Tag: FREESIDE_1_9_BRANCH
cust_main.pm
Log Message:
fix cancellation error "No schema for table table found", seems to be fallout from cust_tag work, RT#9502
Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.464.2.38
retrieving revision 1.464.2.39
diff -u -w -d -r1.464.2.38 -r1.464.2.39
--- cust_main.pm 5 Aug 2010 00:27:06 -0000 1.464.2.38
+++ cust_main.pm 9 Aug 2010 16:20:40 -0000 1.464.2.39
@@ -1341,7 +1341,7 @@
}
foreach my $table (qw( cust_main_invoice cust_main_exemption cust_tag )) {
- foreach my $record ( qsearch( 'table', { 'custnum' => $self->custnum } ) ) {
+ foreach my $record ( qsearch( $table, { 'custnum' => $self->custnum } ) ) {
my $error = $record->delete;
if ( $error ) {
$dbh->rollback if $oldAutoCommit;
@@ -6999,7 +6999,7 @@
my $self = shift;
my $sql = 'SELECT SUM('. $self->balance_date_sql(@_).
') FROM cust_main WHERE custnum='. $self->custnum;
- sprintf( "%.2f", $self->scalar_sql($sql) );
+ sprintf( '%.2f', $self->scalar_sql($sql) );
}
=item balance_pkgnum PKGNUM
More information about the freeside-commits
mailing list