X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fa2billing.pm;h=7aab01a264ea683e2673bd06d7371d2fb1401176;hb=005784113c4ddfb3924ae68408c87dc6cb171640;hp=0547a21d0f009427b922b19f52b16251448592f6;hpb=06fd3d9f3ca53b2d2f7595e55be4b129ca69511c;p=freeside.git diff --git a/FS/FS/part_export/a2billing.pm b/FS/FS/part_export/a2billing.pm index 0547a21d0..7aab01a26 100644 --- a/FS/FS/part_export/a2billing.pm +++ b/FS/FS/part_export/a2billing.pm @@ -24,7 +24,7 @@ tie %options, 'Tie::IxHash', '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' } ; @@ -131,7 +131,7 @@ sub export_insert { 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? @@ -142,6 +142,7 @@ sub export_insert { 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, @@ -221,7 +222,7 @@ sub export_insert { 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, );