Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

70 lines (55 sloc) 1.493 kb
Parser for NORMA43 Files. (a standard from the spanish banking industry for account movements)
Install
=======
gem install norma43
Usage
=====
require 'rubygems'
require 'norma43'
data = Norma43.read(PATH_TO_FILE, "iso-8859-1")
Second parameter is the encoding of the .n43 file. As spanish banks continue in 20th Century, default is iso-8859-1.
Data format (excerpt from data.to_yaml)
===========
:info:
:end_date: 2011-03-20
:account:
:bank: 1234
:office: "1234"
:number: 1234567890
:control: ??
:final_balance: 4469.33
:initial_balance: 10593.16
:account_owner: YOUR NAME OR COMPANY
:currency: "978"
:begin_date: 2011-03-01
:movements:
- :operation_date: 2011-03-01
:concept: TRANSFERENC. A MR. POSTMAN
:value_date: 2011-03-01
:office: 0901
:operation: "0000000000"
:reference_1: "000000000000"
:reference_2: ""
:amount: 927.0
- :operation_date: 2011-03-01
:concept: TRANSFERENC. A MRS. ROBINSON
:value_date: 2011-03-01
:office: 0901
:operation: "0000000000"
:reference_1: "000000000000"
:reference_2: ""
:amount: 1274.09
- :operation_date: 2011-03-04
:concept: TARJ.CREDITO SANDMAN
:value_date: 2011-03-04
:office: 0901
:operation: "0000000000"
:reference_1: "281034520913"
:reference_2: "1234123412341234"
:amount: 1177.81
CHANGELOG
=========
0.2 - June 20, 2011
- Encoding of input files
0.1 - June 15, 2011
- Initial version, most of parsing
Jump to Line
Something went wrong with that request. Please try again.