[freeside-commits] freeside/FS/FS/part_export soma.pm,1.5,1.6
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Dec 3 21:17:00 PST 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail.420.am:/tmp/cvs-serv30438
Modified Files:
soma.pm
Log Message:
wtf?
Index: soma.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/soma.pm,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- soma.pm 24 Nov 2008 15:40:07 -0000 1.5
+++ soma.pm 4 Dec 2008 05:16:57 -0000 1.6
@@ -140,9 +140,9 @@
my $queue = new FS::queue {
'svcnum' => $svc->svcnum,
- 'job' => 'FS::part_export::soma::$method',
+ 'job' => 'FS::part_export::soma::statuschange',
};
- my $error = $queue->insert( $self->option('url'), %args );
+ my $error = $queue->insert( %args );
return $error if $error;
@@ -311,11 +311,13 @@
next unless $application->definitionId == $appid;
$instance_id = $application->instanceId;
- $app_def = $app_catalog->getApplicationDef($appid, $cpeid);
- @attr_def = grep { $_->internalName eq 'status' } @{$app_def->attributes};
+ my $app_def =
+ $soma_objects->{AppCatalog}->getApplicationDef($appid, $cpeid);
+ my @attr_def = grep { $_->internalName eq 'status' }
+ @{$app_def->attributes};
foreach my $attribute ( @{$application->attributes} ) {
- next unless $attibute->definitionId == $attr_def[0]->definitionId;
+ next unless $attribute->definitionId == $attr_def[0]->definitionId;
$attribute->{value} = 'S';
$soma_objects->{Applications}->setAppAttribute( $cpeid,
@@ -351,11 +353,13 @@
next unless $application->definitionId == $appid;
$instance_id = $application->instanceId;
- $app_def = $app_catalog->getApplicationDef($appid, $cpeid);
- @attr_def = grep { $_->internalName eq 'status' } @{$app_def->attributes};
+ my $app_def =
+ $soma_objects->{AppCatalog}->getApplicationDef($appid, $cpeid);
+ my @attr_def = grep { $_->internalName eq 'status' }
+ @{$app_def->attributes};
- foreach my $attribute ( @{$applicate->attributes} ) {
- next unless $attibute->definitionId == $attr_def[0]->definitionId;
+ foreach my $attribute ( @{$application->attributes} ) {
+ next unless $attribute->definitionId == $attr_def[0]->definitionId;
$attribute->{value} = 'E';
$soma_objects->{Applications}->setAppAttribute( $cpeid,
More information about the freeside-commits
mailing list