X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_pkg%2Fsql_generic.pm;h=063af44190eb147d3f3b34808b7f4a78fc0ecb87;hb=dc83512c36dc6bea2585abada4f88d714c600e55;hp=cf38257fa7b7080d11471c0b301cbe69c7417f20;hpb=d3ce5efd1ec0e1a715a154696e2b0aa86e51c27b;p=freeside.git diff --git a/FS/FS/part_pkg/sql_generic.pm b/FS/FS/part_pkg/sql_generic.pm index cf38257fa..063af4419 100644 --- 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 DBI; +use FS::DBI; #use FS::Record qw(qsearch qsearchs); use FS::part_pkg::flat; @@ -40,13 +40,20 @@ use FS::part_pkg::flat; 'weight' => '56', ); +sub price_info { + my $self = shift; + my $str = $self->SUPER::price_info(@_); + $str .= " plus per-service charges" if $str; + $str; +} + 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 ) ) - or die $DBI::errstr; + or die $FS::DBI::errstr; my $sth = $dbh->prepare( $self->option('query') ) or die $dbh->errstr;