Git Product home page Git Product logo

stripe-moneymoney's People

Contributors

nicolindemann avatar timpritlove avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stripe-moneymoney's Issues

Adding transactions merely by date creates double entries

Hi, thanks for this great plugin, it helps me streamlining my bookkeeping process.
Yet it seems like transactions are added checking the date only (basically adding all transactions that have been added after the date of the last transaction). This technically seems like a solid approach, but it looks like the date changes on transactions every now and then by a day or two.

My guess is that this issue happens with all payments that take a couple of days to resolve, such as SEPA payments. It does mostly happen with SEPA payments for me.

I am assuming that comparing the reference of a transaction endToEndReference = value["source"] with existing transactions references would circumvent this issue. Looking at the script I was not able to create a workable PR as I am not familiar with the syntax etc, but wanted to point out the issue nevertheless.

Possibly it would be enough to check for if value["status"] == "available" before adding a transaction (status can be either available or pending, assuming the date can still change if the object lists as pending https://stripe.com/docs/api/balance_transactions/list).

See screenshot for an rather extreme example of double entries. Often it's just two entries (payment and fee).

Screenshot 2021-10-06 at 15 07 24

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.