Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A parser for norma43 files, a standard from the spanish banking industry for account movements)
Ruby
Branch: master
Failed to load latest commit information.
doc initial import. Not finished but it works
lib fixed bug with ruby 1.8.7: str[i] returns a int instead of char, what…
spec fixed bug with ruby 1.8.7: str[i] returns a int instead of char, what…
.gitignore
.travis.yml travis-ci config
Gemfile initial import. Not finished but it works
README set encoding for input files
Rakefile initial import. Not finished but it works
norma43.gemspec gem's url

README

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
Something went wrong with that request. Please try again.