X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Fartera_turbo.pm;fp=FS%2FFS%2Fpart_export%2Fartera_turbo.pm;h=13a4f39a71bf1c189f509d0dd4d5c67253e8716c;hb=62f11a61ae7c51b55d85cbeec5eac72cef545492;hp=1e229615519f77dd5df41130b75c879c9ebfd4d1;hpb=f55e1a91f7b9b0238791cdbf873f91a8c5a584a7;p=freeside.git diff --git a/FS/FS/part_export/artera_turbo.pm b/FS/FS/part_export/artera_turbo.pm index 1e2296155..13a4f39a7 100644 --- a/FS/FS/part_export/artera_turbo.pm +++ b/FS/FS/part_export/artera_turbo.pm @@ -18,6 +18,7 @@ tie my %options, 'Tie::IxHash', 'agent_aid' => { 'label' => 'Export agentnum values to Artera AID', 'type' => 'checkbox', }, + 'aid' => { 'label' => 'Artera Agent ID to use if not using agentnum values', }, 'production' => { 'label' => 'Production mode (leave unchecked for staging)', 'type' => 'checkbox', }, @@ -80,7 +81,9 @@ sub _export_insert { 'email' => $email, 'cname' => $cust_main->name, 'ref' => $svc_external->svcnum, - 'aid' => ( $self->option('agent_aid') ? $cust_main->agentnum : '' ), + 'aid' => ( $self->option('agent_aid') + ? $cust_main->agentnum + : $self->option('aid') ), 'add1' => $cust_main->address1, 'add2' => $cust_main->address2, 'add3' => $cust_main->city,