Conversation
Co-authored-by: Avinash Kunnath <avinash.kunnath@fivetran.com>
fivetran-joemarkiewicz
left a comment
There was a problem hiding this comment.
@fivetran-avinash thanks for working through these updates and combining these updates! A few comments/questions/suggestions before approving.
fivetran-avinash
left a comment
There was a problem hiding this comment.
@fivetran-joemarkiewicz Did some updates to the variable logic and I think everything is working now. Ready for re-review.
fivetran-joemarkiewicz
left a comment
There was a problem hiding this comment.
@fivetran-avinash a few more questions before pre-release.
|
|
||
| ## Bringing in The Right Tax Accounts For Tax Lines | ||
| - When bringing in tax lines ([see the README](https://github.com/fivetran/dbt_quickbooks?tab=readme-ov-file#step-4-enablingdisabling-models) for more details on how to enable/disable tax lines), we want to make sure we are associating each line with the right account, since they usually differ from the accounts for the regular lines. That way these lines are correctly tracked, generally as liabilities. | ||
| - Our initial logic maps the tax agency display name by appending 'Payable' to the end of the name. That should match at least one account name, which is the appropriate account for that tax line. |
There was a problem hiding this comment.
I recall there was a QuickBooks doc that led us to this understanding. Can we link that here.
There was a problem hiding this comment.
Finally found it I think in this support question. https://quickbooks.intuit.com/learn-support/en-ca/taxes/separate-tax-remittance-accounts/00/740623
| # - package: fivetran/quickbooks_source | ||
| # version: 0.14.0-a1 | ||
| - git: https://github.com/fivetran/dbt_quickbooks_source.git | ||
| revision: feature/add-all-tax-lines | ||
| warn-unpinned: false No newline at end of file |
There was a problem hiding this comment.
Reminder to update before pre-release
There was a problem hiding this comment.
Bump to change before pre-release
| ), | ||
|
|
||
|
|
||
| {% if var('using_sales_receipt_tax_line', False) %} |
There was a problem hiding this comment.
when the following variables are set I run into a general ledger unique id test failure. Can you look into why that would be the case.
using_sales_receipt_tax_line: true
using_tax_agency: true
using_tax_rate: false There was a problem hiding this comment.
The same happens for invoice and I imagine the others.
There was a problem hiding this comment.
Tax agency shouldn't be true when tax rate is false, so reconfigured the variables so that tax agency is only true when tax rate is enabled.
There was a problem hiding this comment.
@fivetran-joemarkiewicz Ready for re-review. Variables reconfigured and tested that several configurations worked as expected.
fivetran-joemarkiewicz
left a comment
There was a problem hiding this comment.
@fivetran-avinash a few final questions before ready for pre-release.
| {% endif %} | ||
|
|
||
| {% if var('using_invoice_bundle', True) %} | ||
| {% if var('using_invoice_bundle', False) %} |
There was a problem hiding this comment.
Was this an intentional change? It looks like default is still meant to be true per our README docs.
There was a problem hiding this comment.
No, it wasn't, reverted.
| {% if using_tax_agency %} | ||
| tax_agencies as ( | ||
|
|
||
| select * | ||
| from {{ ref('stg_quickbooks__tax_agency') }} | ||
| ), | ||
|
|
||
| {% endif %} | ||
|
|
||
| {% if using_tax_rate %} | ||
| tax_rates as ( | ||
|
|
||
| select * | ||
| from {{ ref('stg_quickbooks__tax_rate') }} | ||
| ), | ||
|
|
||
| {% endif %} |
There was a problem hiding this comment.
Would a customer ever use these tax variables, when using_journal_entry_tax_line is disabled? If not, why have them exist outside that conditional? They should all be in the same conditional block.
There was a problem hiding this comment.
You can also likely consolidate conditionals this way
There was a problem hiding this comment.
Consolidated.
fivetran-avinash
left a comment
There was a problem hiding this comment.
@fivetran-joemarkiewicz ready for re-review pending Buildkite
fivetran-joemarkiewicz
left a comment
There was a problem hiding this comment.
Looks good for pre-release following the latest updates!
| # - package: fivetran/quickbooks_source | ||
| # version: 0.14.0-a1 | ||
| - git: https://github.com/fivetran/dbt_quickbooks_source.git | ||
| revision: feature/add-all-tax-lines | ||
| warn-unpinned: false No newline at end of file |
There was a problem hiding this comment.
Bump to change before pre-release
* bugfix/invoice-bundles * additional bundle updates and minor global tax update * minor updates * Update README.md * Update CHANGELOG.md * review updates
…an/dbt_quickbooks into feature/add-all-tax-lines
|
Closing this, as we have released newer versions of this package and [PR #179] now handles the latest update. |
PR Overview
Package version introduced in this PR:
This PR addresses the following Issue/Feature(s):
Summary of changes:
Submission Checklist
Changelog