summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevinse <levinse>2011-06-15 23:21:08 +0000
committerlevinse <levinse>2011-06-15 23:21:08 +0000
commit4b23632edace6f1fc227575af633a1a08255866b (patch)
tree4b6919309aef8203f7c2a41a68bc5c1258ad9b6c
parent73e314f84d98ce5406ac4e5f25c076ee876a4bed (diff)
DID inventory/import / bulk DID orders - phase 2, RT12754
-rw-r--r--bin/import-did-inventory7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/import-did-inventory b/bin/import-did-inventory
index 2143181a5..69125eba7 100644
--- a/bin/import-did-inventory
+++ b/bin/import-did-inventory
@@ -358,10 +358,11 @@ sub order {
$o = $did_order{$vendor_order_id};
# warn "$submitted $confirmed $received $vendor_order_id".Dumper($o);
fatal("vendor order #$vendor_order_id - order data differs from one item to another")
- unless ( ($o->submitted == $submitted
+ unless ( ( abs($o->submitted-$submitted) < 5
|| $o->vendor_order_id == 293011) # yet another bad data hack
- && $o->confirmed == $confirmed
- && $o->received == $received);
+ && abs($o->confirmed-$confirmed) < 5
+ && abs($o->received-$received) < 5
+ );
# fatal("customer mismatch for vendor order #$vendor_order_id")
# unless ( ($o->custnum && $cust{'custnum'}
# && ($o->custnum == $cust{'custnum'}