X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fprizm.pm;h=711888d1f2d2104103ca2759f3447816af64a3cf;hp=92f1aec550881ba46f9966ec017ff7bbce04ca5f;hb=52dbc041b5ba187cc2a503e5ad2d800b1a2e5a1f;hpb=2a863bbb144830dfb8fca4afb3af76a84a647c76 diff --git a/FS/FS/part_export/prizm.pm b/FS/FS/part_export/prizm.pm index 92f1aec55..711888d1f 100644 --- a/FS/FS/part_export/prizm.pm +++ b/FS/FS/part_export/prizm.pm @@ -118,7 +118,7 @@ sub _export_insert { $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 @@ sub _export_replace { 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,