diff options
author | ivan <ivan> | 2009-08-24 06:50:00 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-08-24 06:50:00 +0000 |
commit | 426211afa7e8c85bde1473f53e15d166df60461a (patch) | |
tree | 97c572622dece9a3f2e1f3e208f55eb332f6946a /bin | |
parent | a58bd9386e1e5fa1cdd16936fc29093ed67714db (diff) |
(start of) customer move script, RT#5351
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/move-customers | 5 |
1 files 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', |