'credit' => { label=>'Default credit limit' },
'billtype' => {label=>'Billing type',
type => 'select',
- options => ['monthly', 'weekly']
+ options => ['Dial Out Rate', 'Free']
},
'debug' => { label=>'Enable debugging', type=>'checkbox' }
;
username => $username,
useralias => $username,
uipass => $svc->_password,
- credit => $self->option('credit') || 0,
+ creditlimit => $cust_main->credit_limit || $self->option('credit') || 0,
tariff => $part_pkg->option('a2billing_tariff'),
status => 1,
lastname => $cust_main->last, # $svc->finger?
state => $location->state,
country => $country3,
zipcode => $location->zip,
+ simultaccess => $part_pkg->option('a2billing_simultaccess'),
typepaid => $part_pkg->option('a2billing_type'),
sip_buddy => 1,
company_name => $cust_main->company,
id_cc_country => $cc_country_id,
iduser => $cc_card_id,
did => $svc->phonenum,
- billingtype => ($self->option('billtype') eq 'weekly' ? 1 : 0),
+ billingtype => ($self->option('billtype') eq 'Dial Out Rate' ? 2 : 3),
activated => 1,
);
if ( $svc->isa('FS::svc_acct') ) {
$error = $self->a2b_insert_or_replace('cc_card', 'svcnum',
{ svcnum => $svc->svcnum,
- status => 0, #"ACTIVE"
+ status => 1, #"ACTIVE"
activated => 1,
}
);