From 426211afa7e8c85bde1473f53e15d166df60461a Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 24 Aug 2009 06:50:00 +0000 Subject: [PATCH] (start of) customer move script, RT#5351 --- bin/move-customers | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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', -- 2.11.0