Import file from banks to raise bank balance.
Distributed in RubyGems
Gemfile
gem 'cartolabco'
Install
gem install cartolabco
from path or file
bci_xls = Cartolabco::BciParse.from_path('path ...')
bci_xls = Cartolabco::BciParse.from_file(file)
get data
bci = bci_xls.parse
bci
contains:
attribute | type |
---|---|
numero_catola | int |
cuenta_corriente | string |
saldo_inicial | float |
saldo_final | float |
total_cargos | float |
total_abonos | float |
desde | string |
hasta | string |
movimientos | array |
movimientos
contains:
attribute | type |
---|---|
fecha | string |
correlativo | int |
descripcion | string |
sucursal | string |
nro_documento | string |
cargo | float |
abono | float |
saldo | float |
just test your code before pull request, run
$ bundle exec rake test