Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update int_quickbooks__sales_receipt_double_entry.sql #131

Conversation

mikerenderco
Copy link
Contributor

@mikerenderco mikerenderco commented Jun 26, 2024

Updated line 39 amount to a case statement flipping the sign for all sales receipt discounts.

Please provide your name and company
Render Analytics

Link the issue/feature request which this PR is meant to address

Detail what changes this PR introduces and how this addresses the issue/feature request linked above.
Discounts for Sales Receipts were coming into the GL as Positive values but discounts on Sales Receipts should be negative for both debits and credits for the GL to balance. This PR solves that.

How did you validate the changes introduced within this PR?
I implmented a new package inversing polarity on Sales Receipt discounts. Ran the DBT job against our live quickbooks data and made sure the GL balanced. I can confirm that it does.

Which warehouse did you use to develop these changes?
Bigquery

Did you update the CHANGELOG?

  • [] Yes

Did you update the dbt_project.yml files with the version upgrade (please leverage standard semantic versioning)? (In both your main project and integration_tests)

  • Yes

Provide an emoji that best describes your current mood

💃

Feedback

We are so excited you decided to contribute to the Fivetran community dbt package! We continue to work to improve the packages and would greatly appreciate your feedback on our existing dbt packages or what you'd like to see next.

PR Template

Updated line 39 amount to a case statement flipping the sign for all sales receipt discounts.
@fivetran-avinash fivetran-avinash merged commit 95fae91 into fivetran:bugfix/sales-receipt-debit-should-be-negative Jun 26, 2024
@fivetran-avinash fivetran-avinash mentioned this pull request Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants