From: levinse Date: Wed, 15 Jun 2011 23:21:08 +0000 (+0000) Subject: DID inventory/import / bulk DID orders - phase 2, RT12754 X-Git-Tag: freeside_2_1_3~130 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=4b23632edace6f1fc227575af633a1a08255866b DID inventory/import / bulk DID orders - phase 2, RT12754 --- 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'}