projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix TeleAPI import (what kind of crack was Christopher smoking that he couldn't fix...
[freeside.git]
/
FS
/
FS
/
part_pkg
/
sql_generic.pm
diff --git
a/FS/FS/part_pkg/sql_generic.pm
b/FS/FS/part_pkg/sql_generic.pm
index
e323d8b
..
063af44
100644
(file)
--- a/
FS/FS/part_pkg/sql_generic.pm
+++ b/
FS/FS/part_pkg/sql_generic.pm
@@
-2,7
+2,7
@@
package FS::part_pkg::sql_generic;
use strict;
use vars qw(@ISA %info);
use strict;
use vars qw(@ISA %info);
-use DBI;
+use
FS::
DBI;
#use FS::Record qw(qsearch qsearchs);
use FS::part_pkg::flat;
#use FS::Record qw(qsearch qsearchs);
use FS::part_pkg::flat;
@@
-42,7
+42,7
@@
use FS::part_pkg::flat;
sub price_info {
my $self = shift;
sub price_info {
my $self = shift;
- my $str = $self->SUPER::price_info;
+ my $str = $self->SUPER::price_info
(@_)
;
$str .= " plus per-service charges" if $str;
$str;
}
$str .= " plus per-service charges" if $str;
$str;
}
@@
-50,10
+50,10
@@
sub price_info {
sub calc_recur {
my($self, $cust_pkg ) = @_;
sub calc_recur {
my($self, $cust_pkg ) = @_;
- my $dbh = DBI->connect( map { $self->option($_) }
+ my $dbh =
FS::
DBI->connect( map { $self->option($_) }
qw( datasrc db_username db_password )
)
qw( datasrc db_username db_password )
)
- or die $DBI::errstr;
+ or die $
FS::
DBI::errstr;
my $sth = $dbh->prepare( $self->option('query') )
or die $dbh->errstr;
my $sth = $dbh->prepare( $self->option('query') )
or die $dbh->errstr;