[freeside-commits] freeside/FS/FS/part_export prizm.pm,1.2,1.3
Jeff Finucane,420,,
jeff at wavetail.420.am
Fri Jan 12 15:27:11 PST 2007
Update of /home/cvs/cvsroot/freeside/FS/FS/part_export
In directory wavetail:/tmp/cvs-serv15676/FS/FS/part_export
Modified Files:
prizm.pm
Log Message:
added svc_broadband description which is appended to Site Name in prizm export
Index: prizm.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_export/prizm.pm,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- prizm.pm 29 Dec 2006 00:30:52 -0000 1.2
+++ prizm.pm 12 Jan 2007 23:27:09 -0000 1.3
@@ -118,7 +118,7 @@
$err_or_som = $self->prizm_command('NetworkIfService', 'addProvisionedElement',
$networkid,
$svc->mac_addr,
- $name,
+ $name . " " . $svc->description,
$location,
$contact,
sprintf("%032X", $svc->authkey),
@@ -266,7 +266,17 @@
grep { exists($freeside2prizm{$_}) }
fields( 'svc_broadband' );
+ if ($old->description ne $new->description) {
+ my $cust_main = $old->cust_svc->cust_pkg->cust_main;
+ my $name = defined($cust_main->dbdef_table->column('ship_last'))
+ ? $cust_main->ship_name
+ : $cust_main->name;
+ push @values, $name . " " . $new->description;
+ push @names, "Site Name";
+ }
+
my $element = $err_or_som->result->[0]->elementId;
+
$err_or_som = $self->prizm_command('NetworkIfService', 'setElementConfig',
[ $element ],
\@names,
More information about the freeside-commits
mailing list