-
Notifications
You must be signed in to change notification settings - Fork 47
Feature/add all tax lines #171
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
Changes from 22 commits
3e354c7
95c441f
771f86b
2512e79
60cb98e
be5ae28
1685748
7219aea
49822ad
b125eb1
ecb8196
c68ebdf
153e8cb
82822a1
0a6d16a
e52d2d6
a5c6f5c
3c32e2f
685cf75
d2b70af
5cdeecb
b780f1b
921024c
74129d2
edd4831
1cc667b
8a47956
dd6bd1d
1ff58e3
3d22662
166ed21
b317823
4488fa1
8d2f73d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: 'generate dbt docs' | ||
| on: | ||
| pull_request: | ||
| types: | ||
| - labeled | ||
|
|
||
| jobs: | ||
| generate-docs: | ||
| if: github.event.label.name == 'docs:ready' | ||
| uses: fivetran/dbt_package_automations/.github/workflows/generate-docs.yml@main | ||
| secrets: inherit | ||
| with: | ||
| schema_var_name: quickbooks_schema |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,73 @@ | ||
|
|
||
| target/ | ||
| # dbt | ||
| **/package-lock.yml | ||
| package-lock.yml | ||
| .dbt/ | ||
| dbt_modules/ | ||
| dbt_packages/ | ||
| logs/ | ||
| profiles.yml | ||
| target/ | ||
| *.log | ||
|
|
||
| # IDE files | ||
| .idea/ | ||
| .vscode/ | ||
| *~ | ||
| *.swp | ||
| *.swo | ||
|
|
||
| # Jupyter Notebook | ||
| .ipynb_checkpoints | ||
|
|
||
| # OS generated files | ||
| **/.DS_Store | ||
| .DS_Store | ||
| integration_tests/.DS_Store | ||
| dbt_packages/ | ||
| env/ | ||
| .Spotlight-V100 | ||
| .Trashes | ||
| ._* | ||
| Thumbs.db | ||
| ehthumbs.db | ||
|
|
||
| # Python | ||
| *.egg | ||
| *.egg-info/ | ||
| *.py[cod] | ||
| *.so | ||
| *$py.class | ||
| .Python | ||
| __pycache__/ | ||
| build/ | ||
| develop-eggs/ | ||
| dist/ | ||
| downloads/ | ||
| eggs/ | ||
| .env | ||
| .installed.cfg | ||
| lib/ | ||
| lib64/ | ||
| MANIFEST | ||
| parts/ | ||
| sdist/ | ||
| var/ | ||
| wheels/ | ||
|
|
||
| # Secrets and credentials | ||
| .env.* | ||
| .secrets | ||
| credentials.json | ||
| service-account.json | ||
|
|
||
| # Temporary files | ||
| .cache/ | ||
| *.temp | ||
| *.tmp | ||
|
|
||
| # Virtual environments | ||
| .conda/ | ||
| .env | ||
| .venv | ||
| ENV/ | ||
| env/ | ||
| env.bak/ | ||
| venv/ | ||
| venv.bak/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,4 +65,11 @@ Please leverage the below fields in your end models for your financial statement | |
| | [quickbooks__balance_sheet](https://fivetran.github.io/dbt_quickbooks/#!/model/model.quickbooks.quickbooks__balance_sheet) | `converted_amount` | `amount` | | ||
| | [quickbooks__cash_flow_statement](https://fivetran.github.io/dbt_quickbooks/#!/model/model.quickbooks.quickbooks__cash_flow_statement) | `cash_converted_ending_period`, `cash_converted_beginning_period`, `cash_converted_net_period` | `cash_ending_period`, `cash_beginning_period`, `cash_net_period` | | ||
| | [quickbooks__ap_ar_enhanced](https://fivetran.github.io/dbt_quickbooks/#!/model/model.quickbooks.quickbooks__ap_ar_enhanced) | `total_converted_amount`, `estimate_total_converted_amount`, `total_current_converted_payment` | `total_amount`, `estimate_total_amount`, `total_current_payment` | | ||
| | [quickbooks__expenses_sales_enhanced](https://fivetran.github.io/dbt_quickbooks/#!/model/model.quickbooks.quickbooks__expenses_sales_enhanced) | `total_converted_amount`, `converted_amount` | `total_amount`, `amount` | | ||
| | [quickbooks__expenses_sales_enhanced](https://fivetran.github.io/dbt_quickbooks/#!/model/model.quickbooks.quickbooks__expenses_sales_enhanced) | `total_converted_amount`, `converted_amount` | `total_amount`, `amount` | | ||
|
|
||
| ## 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. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I recall there was a QuickBooks doc that led us to this understanding. Can we link that here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Finally found it I think in this support question. https://quickbooks.intuit.com/learn-support/en-ca/taxes/separate-tax-remittance-accounts/00/740623 |
||
| - If tax agencies aren't where you want your mapping to take place, we then search for your default `Sales Tax Payable` and `Global Tax Payable` account available in your Quickbooks account. | ||
| - If neither of those accounts are available, the `quickbooks__sales_tax_account_reference` and `quickbooks__global_tax_account_reference` are made available to publish the account name you believe matches the tax line. [See the README for more details](https://github.com/fivetran/dbt_quickbooks?tab=readme-ov-file#configuring-account-type-names). | ||
| - This behavior pertains to the invoice, journal entry, refund receipt, and sales receipt tax line entries. (Purchase tax lines will be associated with their purchase accounts). | ||
Uh oh!
There was an error while loading. Please reload this page.