4 use FS::UID qw(adminsuidsetup);
5 use FS::Record qw( qsearchs );
8 my $user = shift or die "usage: cust_main-show_geocoding username custnum ...\n";
13 while ( my $custnum = shift @custnums ) {
15 my $cust_main = qsearchs({
16 'table' => 'cust_main',
17 'hashref' => { 'custnum' => $custnum }
20 warn "can't find custnum $custnum\n";
25 $cust_main->custnum. ': '. $cust_main->name. ': '.
26 'zip: '. $cust_main->zip. ', '.
27 'database geocode: '. $cust_main->get('geocode'). ', ';
29 $cust_main->set('geocode', '');
30 $output .= 'computed geocode: '. $cust_main->geocode('cch');