X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_main.pm;h=28f6e90e9e3a7cd93323911bf6c7113bc810a2f9;hb=8fcf4d534f662287dc97f44acc47ff874192c408;hp=0bdc622f156f3f451eda587dcb2b22ab03fc0bc3;hpb=e3fe71c58c8780ce3f88c417931b455236b26529;p=freeside.git diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 0bdc622f1..28f6e90e9 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -676,6 +676,15 @@ sub auto_agent_custid { $counter->unlock; + } elsif ( $format eq '1001XXXXXXXX' ) { + + my $counter = new File::CounterFile 'cust_main.agent_custid'; + $counter->lock; + + $agent_custid = '1001'. $counter->inc; + + $counter->unlock; + } else { die "Unknown cust_main-auto_agent_custid format: $format"; }