diff options
author | levinse <levinse> | 2011-06-15 23:17:52 +0000 |
---|---|---|
committer | levinse <levinse> | 2011-06-15 23:17:52 +0000 |
commit | 17cccd36c342f7db174bce29fc68d7b4a7bdfd85 (patch) | |
tree | a3ca6ba362d6622fb78f2e8a7a068c7abb7d9eff /bin | |
parent | 58751dff46dcb5624429e222f1cad72d7fea90f1 (diff) |
DID inventory/import / bulk DID orders - phase 2, RT12754
Diffstat (limited to 'bin')
-rw-r--r-- | bin/import-did-inventory | 7 |
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'} |