Commit 977a0b36 authored by phil's avatar phil

catch error an deisplay details

parent 4873a32c
...@@ -23,7 +23,13 @@ module CamtToV11 ...@@ -23,7 +23,13 @@ module CamtToV11
details = entry['NtryDtls']['TxDtls'] details = entry['NtryDtls']['TxDtls']
details.each do |detail| details.each do |detail|
tp = detail['Refs']['Prtry']['Tp'] tp = detail['Refs']['Prtry']['Tp']
begin
ref = detail['RmtInf']['Strd']['CdtrRefInf']['Ref'] ref = detail['RmtInf']['Strd']['CdtrRefInf']['Ref']
rescue e
puts e
puts detail
throw e
end
amount = (detail['Amt'].to_f * 100).to_i amount = (detail['Amt'].to_f * 100).to_i
tmp = detail['Refs']['Prtry']['Ref'] tmp = detail['Refs']['Prtry']['Ref']
dat1 = tmp.slice(2,6) dat1 = tmp.slice(2,6)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment