RT# 83450 - fixed rateplan export
[freeside.git] / FS / FS / part_export / portaone.pm
index 2625c57..986a556 100644 (file)
@@ -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;