GithubHelp home page GithubHelp logo

Comments (3)

bumi avatar bumi commented on June 25, 2024

can you provide some example code that shows what you're trying to do and example statement?

from cmxl.

cdhannes avatar cdhannes commented on June 25, 2024

Hi @bumi

This is our code:

    statements = Cmxl.parse(open(file.expiring_url).read) # , encoding: 'UTF-8'
    statement = statements.first

    if save
      statement.transactions.each do |transaction|
        new_transaction = BankTransaction.new(
          ...
          entry_date: transaction.entry_date,
          ...
        )
        increment!(:transactions_processed_count) if new_transaction.save
      end

and this is the file:

:20:STARTUMSE
:25:xxxx0000/00000xxxxx
:28C:000xx/001
:60F:C191230EUR000000xxxxxx,xx
:61:1912301230CR000000000xxx,xxNMSCNONREF//xxxxxxxx
:86:166?00xxxxxxxxxx
:61:1912311230DR000000000xxx,xxNMSCNONREF
:86:805?00xxxxxxxxxx
1,90S?3061030000?310000052930
:62F:C191230EUR000000xxxxxx,xx

This is the parsed data for the second transaction:

 @match=
  #<MatchData
   "1912311230DR000000000xxx,xxNMSCNONREF"
   date:"191231"
   entry_date:"1230"

from cmxl.

bumi avatar bumi commented on June 25, 2024

the transaction is from 30.12.2019 but the actual value booking happened on 31.12.2019
Valuta (date) vs. Buchungsdatum (entry_date)

so that should be fine, isn't it?

from cmxl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.