Git Product home page Git Product logo

rewe-ebon-parser's People

Contributors

bitowl avatar crawlercode avatar webd97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rewe-ebon-parser's Issues

Payback parsing not working anymore

I found a new format for the payback section on my latest ebon:

      Ihre REWE PAYBACK Vorteile heute
     PAYBACK Karten-Nr.: #############
      Punktestand vor Einkauf: 6.922
    Punktestand entspricht: 69,22 EUR

    Sie erhalten 14 PAYBACK Punkte auf 
   einen PAYBACK Umsatz von 29,79 EUR!  

Floating point error in missing item check

Thank you for building this library. I'm using it to automatically parse incoming mails containing eBons into a database, so that we can easily distribute costs via Splitwise.

This anonymized eBon 2020-03-13T19_17_00.000Z.pdf produces the following error:
Error: Something went wrong when parsing the eBon: The eBon states a total sum of 1964.9999999999998 but the parser only found items worth 1965.

My quick workaround was to round the totals to two after-comma digits before comparing them:

if (realTotalInCents.toFixed(2) != totalInCents.toFixed(2)) {

Item name cut off at ampersand (&)

Hi,

the parser seems to have a problem with an ampersand "&" in the product name. I had the item "BUD & TERENCE" on my ebon
What i received back from the parser was " TERENCE" (notice the leading space).

Edit: Had a short look, it probably just needs an adjustment of the regex in line 38

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.