-
Notifications
You must be signed in to change notification settings - Fork 40
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 sales receipt discount logic to provide negative amounts #130
Update sales receipt discount logic to provide negative amounts #130
Conversation
Updated line 39 amount to a case statement flipping the sign for all sales receipt discounts.
Update int_quickbooks__sales_receipt_double_entry.sql
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-avinash this looks great! Thanks for working through this and your validation tests made the review very straightforward!
I have a few minor suggestions and then one question in the sales_receipt model regarding if the account model still needs to be brought in. Let me know once all comments are addressed and I can re-review. Thanks!
models/double_entry_transactions/int_quickbooks__sales_receipt_double_entry.sql
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-avinash thanks for making the changes! This looks good to merge into the release branch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fivetran-joemarkiewicz Ready for re-review!
PR Overview
This PR will address the following Issue/Feature: [#127]
This PR will result in the following new package version: Will be folded into a wider release.
Not a breaking change, no columns are being removed, just modified in the existing logic.
Please provide the finalized CHANGELOG entry which details the relevant changes included in this PR:
int_quickbooks__sales_receipt_double_entry
model to bring in these values properly as negative adjusted amounts in thequickbooks__general_ledger
.PR Checklist
Basic Validation
Please acknowledge that you have successfully performed the following commands locally:
Before marking this PR as "ready for review" the following have been applied:
Detailed Validation
Please share any and all of your validation steps:
Consistency tests are passing on seed data! I provided a small filter for the
adjusted_amount
tests in case of minuscule amount differences that might come up in warehouses but would not cause issues with the eventual amount calculation.If you had to summarize this PR in an emoji, which would it be?
☎️