From 17cccd36c342f7db174bce29fc68d7b4a7bdfd85 Mon Sep 17 00:00:00 2001 From: levinse Date: Wed, 15 Jun 2011 23:17:52 +0000 Subject: [PATCH] DID inventory/import / bulk DID orders - phase 2, RT12754 --- bin/import-did-inventory | 7 ++++--- 1 file 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'} -- 2.11.0