[freeside-commits] freeside/FS/FS cust_pkg.pm,1.132,1.133
Ivan,,,
ivan at wavetail.420.am
Sun Jul 19 21:51:36 PDT 2009
- Previous message: [freeside-commits] freeside/rt/lib/RT Transaction_Overlay.pm, 1.1.1.9, 1.2
- Next message: [freeside-commits] freeside/httemplate/elements checkbox.html, NONE, 1.1 tr-checkbox.html, 1.1, 1.2 tr-justtitle.html, 1.1, 1.2 tr-title.html, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv31435
Modified Files:
cust_pkg.pm
Log Message:
one $conf is enough
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.132
retrieving revision 1.133
diff -u -d -r1.132 -r1.133
--- cust_pkg.pm 17 Jul 2009 01:44:24 -0000 1.132
+++ cust_pkg.pm 20 Jul 2009 04:51:34 -0000 1.133
@@ -647,7 +647,6 @@
# Add a credit for remaining service
my $remaining_value = $self->calc_remain(time=>$cancel_time);
if ( $remaining_value > 0 && !$options{'no_credit'} ) {
- my $conf = new FS::Conf;
my $error = $self->cust_main->credit(
$remaining_value,
'Credit for unused time on '. $self->part_pkg->pkg,
@@ -673,10 +672,8 @@
$dbh->commit or die $dbh->errstr if $oldAutoCommit;
return '' if $date; #no errors
- my $conf = new FS::Conf;
my @invoicing_list = grep { $_ !~ /^(POST|FAX)$/ } $self->cust_main->invoicing_list;
if ( !$options{'quiet'} && $conf->exists('emailcancel') && @invoicing_list ) {
- my $conf = new FS::Conf;
my $error = send_email(
'from' => $conf->config('invoice_from', $self->cust_main->agentnum),
'to' => \@invoicing_list,
- Previous message: [freeside-commits] freeside/rt/lib/RT Transaction_Overlay.pm, 1.1.1.9, 1.2
- Next message: [freeside-commits] freeside/httemplate/elements checkbox.html, NONE, 1.1 tr-checkbox.html, 1.1, 1.2 tr-justtitle.html, 1.1, 1.2 tr-title.html, 1.2, 1.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list