projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
759558e
)
wtf?
author
jeff
<jeff>
Thu, 4 Dec 2008 05:16:57 +0000
(
05:16
+0000)
committer
jeff
<jeff>
Thu, 4 Dec 2008 05:16:57 +0000
(
05:16
+0000)
FS/FS/part_export/soma.pm
patch
|
blob
|
history
diff --git
a/FS/FS/part_export/soma.pm
b/FS/FS/part_export/soma.pm
index
6fe23c4
..
c73d9f9
100644
(file)
--- a/
FS/FS/part_export/soma.pm
+++ b/
FS/FS/part_export/soma.pm
@@
-140,9
+140,9
@@
sub queue_statuschange {
my $queue = new FS::queue {
'svcnum' => $svc->svcnum,
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;
return $error if $error;
@@
-311,11
+311,13
@@
sub _queueable_suspend {
next unless $application->definitionId == $appid;
$instance_id = $application->instanceId;
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} ) {
foreach my $attribute ( @{$application->attributes} ) {
- next unless $attibute->definitionId == $attr_def[0]->definitionId;
+ next unless $att
r
ibute->definitionId == $attr_def[0]->definitionId;
$attribute->{value} = 'S';
$soma_objects->{Applications}->setAppAttribute( $cpeid,
$attribute->{value} = 'S';
$soma_objects->{Applications}->setAppAttribute( $cpeid,
@@
-351,11
+353,13
@@
sub _queueable_unsuspend {
next unless $application->definitionId == $appid;
$instance_id = $application->instanceId;
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 ( @{$applicat
e
->attributes} ) {
- next unless $attibute->definitionId == $attr_def[0]->definitionId;
+ foreach my $attribute ( @{$applicat
ion
->attributes} ) {
+ next unless $att
r
ibute->definitionId == $attr_def[0]->definitionId;
$attribute->{value} = 'E';
$soma_objects->{Applications}->setAppAttribute( $cpeid,
$attribute->{value} = 'E';
$soma_objects->{Applications}->setAppAttribute( $cpeid,