summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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..b05c33fb9 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'}