Code Monkey home page Code Monkey logo

Comments (5)

JoeMark17 avatar JoeMark17 commented on June 10, 2024

Hi @ayushonplan

Thanks for opening this issue. It seems the issue you are describing is that the net_value amounts within the final dbt model are not matching the Xero UI generated reports. I actually previously helped an individual with a similar question in this Issue.

Would you be able refer to the resolution we achieved in the previous issue and let me know if that resolves the discrepancy you are seeing as well.

Thanks!

from dbt_xero.

ayushonplan avatar ayushonplan commented on June 10, 2024

from dbt_xero.

fivetran-joemarkiewicz avatar fivetran-joemarkiewicz commented on June 10, 2024

Thanks for the clarification @ayushonplan

I would imagine the inverse values are a result of the journal entry is a credit and the Xero is recognizing the increase as a negative value. We then adjust for this in the final model by multiplying by -1 to ensure the final PL reports do not display negative values when they are in fact increases.

coalesce(sum(ledger.net_amount * -1),0) as net_amount

Would you be able to confirm the account that you are noticing this for. My suspicion is that it is an account that is increased with a credit and that is why the journal entries are showing negative values, when in fact they should be represented as positive values in the P&L (i.e a revenue amount will usually be adjusted to be positive and an expense to be negative).

from dbt_xero.

fivetran-joemarkiewicz avatar fivetran-joemarkiewicz commented on June 10, 2024

HI @ayushonplan 👋

I wanted to check back in if my above explanation helped answer your question?

from dbt_xero.

fivetran-joemarkiewicz avatar fivetran-joemarkiewicz commented on June 10, 2024

Hi @ayushonplan 👋

I will be closing this issue as I believe the above message addresses your initial question. Please feel free to re-open this issue if you would like to discuss further.

Thanks!

from dbt_xero.

Related Issues (17)

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.