.. image:: https://travis-ci.org/themalkolm/ofxstatement-alfabank.svg?branch=master
    :target: https://travis-ci.org/themalkolm/ofxstatement-alfabank

This is a collection of parsers for proprietary statement formats, produced by
`AlfaBank`_. It parses ``movementList.csv`` file exported from internet bank.

It is a plugin for `ofxstatement`_.

.. _AlfaBank: http://alfabank.ru
.. _ofxstatement: https://github.com/kedder/ofxstatement

Configuration
=============

There is only one configuration option ``brief``. Turn it on if you want to parse description
and replace it with the actual card description while stripping off any know additional
data e.g:

``123456++++++7890    12312312\111\NOVOSIBIRSK\CHITAI GOROD             10.01.16 08.01.16       617.00  RUR``

to

``12312312\111\NOVOSIBIRSK\CHITAI GOROD``

Why? This way similar transactions will have similar descriptions and it will allow you to
group transactions using simple text grouping. Otherwise date suffixes will prevent this and
make every transaction description unique.

Locale
======

You can configure exact locale and encodings to use during parsing. Here is example how to configure both of them
with the default configuration you always have.

.. code-block::

    [default]
    plugin = alfabank
    encoding = cp1251
    locale = ru_RU

Example
=======

.. code-block::

    [alfabank]
    plugin = alfabank
    brief = 1
