X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fmove-customers;h=1da39b89e2364b9495fb21246645a5cfa2af6a54;hb=426211afa7e8c85bde1473f53e15d166df60461a;hp=40219551ed8ff8f231751d7b7255514f7d68880f;hpb=a58bd9386e1e5fa1cdd16936fc29093ed67714db;p=freeside.git diff --git a/bin/move-customers b/bin/move-customers index 40219551e..1da39b89e 100755 --- a/bin/move-customers +++ b/bin/move-customers @@ -146,6 +146,7 @@ while ( my $agentrow = $agent_sth->fetchrow_hashref ) { }; $cust_main->ship_country('') if $cust_main->ship_country eq ' '; + $cust_main->tax('') if $cust_main->tax =~ /^\s+$/; my $error = $cust_main->insert; if ( $error ) { @@ -188,7 +189,7 @@ while ( my $agentrow = $agent_sth->fetchrow_hashref ) { # cust_credit_refund (map refundnum and crednum...) import_table( 'cust_credit_refund', 'refundnum' => $src_refundnum, - 'search' => 'refundum', + 'search' => 'refundnum', 'map' => 'cust_refund', 'map2' => 'cust_credit', 'map2key' => 'crednum', @@ -197,7 +198,7 @@ while ( my $agentrow = $agent_sth->fetchrow_hashref ) { # cust_pay_refund (map refundnum and paynum...) import_table( 'cust_pay_refund', 'refundnum' => $src_refundnum, - 'search' => 'refundum', + 'search' => 'refundnum', 'map' => 'cust_refund', 'map2' => 'cust_pay', 'map2key' => 'paynum',