X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fportaone.pm;h=986a556bad3a07d72519570e022171e5325a4e2e;hp=2625c5741d855172e1de736de6f6317f0ebda41f;hb=5372897f367498972c96f5494e142e6e11b29eb8;hpb=4f68aef1daec2e338839bbe7968bf1919e33e962 diff --git a/FS/FS/part_export/portaone.pm b/FS/FS/part_export/portaone.pm index 2625c5741..986a556ba 100644 --- a/FS/FS/part_export/portaone.pm +++ b/FS/FS/part_export/portaone.pm @@ -40,7 +40,7 @@ tie my %options, 'Tie::IxHash', 'customer_name' => { label => 'Customer Name', default => 'FREESIDE CUST $custnum' }, 'account_id' => { label => 'Account ID', - default => 'FREESIDE SVC $svcnum' }, + default => 'SVC$svcnum' }, 'product_id' => { label => 'Account Product ID' }, 'debug' => { type => 'checkbox', label => 'Enable debug warnings' }, @@ -139,8 +139,9 @@ sub _export_insert { 'i_customer' => $i_customer, 'iso_4217' => ($conf->config('currency') || 'USD'), 'i_product' => $product_id, - 'activation_date' => time2str("%Y-%m-%d %H:%M:%S",time), + 'activation_date' => time2str("%Y-%m-%d",time), 'billing_model' => 1, # '1' for credit, '-1' for debit, could make this an export option + 'h323_password' => $svc_phone->sip_password, } },'i_account'); return $self->api_error_logout if $self->api_error; @@ -381,6 +382,7 @@ sub api_update_account { 'i_account' => $i_account, 'id' => $newid, 'i_product' => $self->option('product_id'), + 'h323_password' => $svc_phone->sip_password, }, },'i_account'); return if $self->api_error;