Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .quickstart/quickstart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ table_variables:
- purchase_order_linked_txn
- purchase_order

_fivetran_quickstart_bill_tax_line:
- bill_tax_line_detail
_fivetran_quickstart_estimate_tax_line:
- estimate_tax_line
_fivetran_quickstart_credit_memo_tax_line:
- credit_memo_tax_line_detail
_fivetran_quickstart_deposit_tax_line:
- deposit_tax_line_detail
_fivetran_quickstart_invoice_tax_line:
- invoice_tax_line
_fivetran_quickstart_journal_entry_tax_line:
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# dbt_quickbooks v1.9.0
[PR #212](https://github.com/fivetran/dbt_quickbooks/pull/212) includes the following updates:

## Schema/Data Change
**5 total changes • 1 possible breaking change**

| Data Model(s) | Change type | Old | New | Notes |
| ------------- | ----------- | --- | --- | ----- |
| `stg_quickbooks__bill_tax_line` | New model | — | — | Enabled via `using_bill_tax_line`. Surfaces tax line detail records for bills. |
| `stg_quickbooks__credit_memo_tax_line` | New model | — | — | Enabled via `using_credit_memo_tax_line`. Surfaces tax line detail records for credit memos. |
| `stg_quickbooks__deposit_tax_line` | New model | — | — | Enabled via `using_deposit_tax_line`. Surfaces tax line detail records for deposits. |
| `stg_quickbooks__estimate_tax_line` | New model | — | — | Enabled via `using_estimate_tax_line`. Surfaces tax line detail records for estimates. |
| `quickbooks__general_ledger` | Updated rows | Expense account | Tax liability account | When `using_purchase_tax_line` is enabled, purchase tax line rows now post to the tax liability account instead of the expense account. This aligns with how all other transaction types handle tax lines. ⚠️ Downstream reports filtering on `account_id` for purchase tax rows will see different values after upgrading. |

# dbt_quickbooks v1.8.0
[PR #208](https://github.com/fivetran/dbt_quickbooks/pull/208) includes the following updates:

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ vars:
using_purchase_tax_line: true # enable if you have purchase tax lines in QuickBooks
using_refund_receipt_tax_line: true # enable if you have refund receipt tax lines in QuickBooks
using_sales_receipt_tax_line: true # enable if you have sales receipt tax lines in QuickBooks
using_bill_tax_line: true # enable if you have bill tax lines in QuickBooks
using_credit_memo_tax_line: true # enable if you have credit memo tax lines in QuickBooks
using_deposit_tax_line: true # enable if you have deposit tax lines in QuickBooks
using_estimate_tax_line: true # enable if you have estimate tax lines in QuickBooks
using_tax_agency: true #enable if you have tax agencies in QuickBooks
using_tax_rate: true #enable if you have tax rates in QuickBooks
```
Expand Down
11 changes: 10 additions & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,22 @@ vars:
bill_payment_line: "{{ source('quickbooks', 'bill_payment_line') }}"
bill_payment: "{{ source('quickbooks', 'bill_payment') }}"
bill: "{{ source('quickbooks', 'bill') }}"
bill_tax_line: "{{ source('quickbooks','bill_tax_line_detail') }}"
bundle_item: "{{ source('quickbooks', 'bundle_item') }}"
bundle: "{{ source('quickbooks', 'bundle') }}"
credit_memo_line: "{{ source('quickbooks', 'credit_memo_line') }}"
credit_memo: "{{ source('quickbooks', 'credit_memo') }}"
credit_memo_tax_line: "{{ source('quickbooks','credit_memo_tax_line_detail') }}"
credit_card_payment_txn: "{{ source('quickbooks', 'credit_card_payment_txn') }}"
customer: "{{ source('quickbooks', 'customer') }}"
customer_type: "{{ source('quickbooks', 'customer_type') }}"
department: "{{ source('quickbooks', 'department') }}"
deposit_line: "{{ source('quickbooks', 'deposit_line') }}"
deposit: "{{ source('quickbooks', 'deposit') }}"
deposit_tax_line: "{{ source('quickbooks','deposit_tax_line_detail') }}"
estimate: "{{ source('quickbooks', 'estimate') }}"
estimate_line: "{{ source('quickbooks', 'estimate_line') }}"
estimate_tax_line: "{{ source('quickbooks','estimate_tax_line') }}"
invoice_line: "{{ source('quickbooks', 'invoice_line') }}"
invoice_line_bundle: "{{ source('quickbooks', 'invoice_line_bundle') }}"
invoice_linked_txn: "{{ source('quickbooks', 'invoice_linked_txn') }}"
Expand Down Expand Up @@ -93,10 +97,15 @@ vars:
using_sales_receipt: true
using_credit_card_payment_txn: false
using_purchase_order: false
using_invoice_tax_line: false
using_journal_entry_tax_line: false
using_purchase_tax_line: false
using_sales_receipt_tax_line: false
using_refund_receipt_tax_line: false
using_invoice_tax_line: false
using_bill_tax_line: false
using_credit_memo_tax_line: false
using_deposit_tax_line: false
using_estimate_tax_line: false
using_tax_agency: false
using_tax_rate: false

Expand Down
2 changes: 1 addition & 1 deletion docs/catalog.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/manifest.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion integration_tests/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ dbt_modules/
dbt_packages/
logs/
env/
package-lock.yml
package-lock.yml
dbt_internal_packages/
23 changes: 23 additions & 0 deletions integration_tests/ci/test_scenarios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,29 @@ test_scenarios:
using_customer_type: false
include_incremental: false

- name: "bill credit memo deposit tax lines enabled"
vars:
using_bill_tax_line: true
using_credit_memo_tax_line: true
using_deposit_tax_line: true
using_estimate_tax_line: true
using_tax_agency: true
using_tax_rate: true
using_address: false
using_credit_card_payment_txn: false
using_customer_type: false
using_estimate: false
using_invoice: false
using_invoice_bundle: false
using_journal_entry: false
using_payment: false
using_purchase_order: false
using_refund_receipt: false
using_sales_receipt: false
using_transfer: false
using_vendor_credit: false
include_incremental: false

- name: "MDLS"
vars:
fivetran_using_source_casing: true
Expand Down
45 changes: 42 additions & 3 deletions integration_tests/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ vars:
quickbooks_refund_receipt_line_identifier: "refund_receipt_line_data"
quickbooks_refund_receipt_identifier: "refund_receipt_data"
quickbooks_refund_receipt_tax_line_identifier: "refund_receipt_tax_line_data"
quickbooks_bill_tax_line_identifier: "bill_tax_line_data"
quickbooks_credit_memo_tax_line_identifier: "credit_memo_tax_line_data"
quickbooks_deposit_tax_line_identifier: "deposit_tax_line_data"
quickbooks_estimate_tax_line_identifier: "estimate_tax_line_data"
quickbooks_sales_receipt_line_identifier: "sales_receipt_line_data"
quickbooks_sales_receipt_identifier: "sales_receipt_data"
quickbooks_sales_receipt_tax_line_identifier: "sales_receipt_tax_line_data"
Expand All @@ -69,9 +73,12 @@ vars:
# using_journal_entry_tax_line: true # @docs-include
# using_purchase_tax_line: true # @docs-include
# using_refund_receipt_tax_line: true # @docs-include
# using_sales_receipt_tax_line: true # @docs-include
# using_tax_agency: true # @docs-include
# using_tax_rate: true # @docs-include
# using_sales_receipt_tax_line: true # @docs-include
# using_bill_tax_line: true # @docs-include
# using_credit_memo_tax_line: true # @docs-include
# using_deposit_tax_line: true # @docs-include
# using_tax_agency: true # @docs-include
# using_tax_rate: true # @docs-include

seeds:
+docs:
Expand All @@ -95,6 +102,9 @@ seeds:
credit_memo_data:
+column_types:
transaction_date: date
customer_data:
+column_types:
_fivetran_deleted: "{{ 'boolean' if target.type in ('snowflake', 'spark', 'databricks') else 'bool' }}"
deposit_data:
+column_types:
transaction_date: date
Expand Down Expand Up @@ -148,13 +158,42 @@ seeds:
override_delta_amount: float
tax_inclusive_amount: float
tax_percent: float
bill_tax_line_data:
+column_types:
amount: float
net_amount_taxable: float
override_delta_amount: float
tax_inclusive_amount: float
tax_percent: float
credit_memo_tax_line_data:
+column_types:
amount: float
net_amount_taxable: float
override_delta_amount: float
tax_inclusive_amount: float
tax_percent: float
deposit_tax_line_data:
+column_types:
amount: float
net_amount_taxable: float
override_delta_amount: float
tax_inclusive_amount: float
tax_percent: float
estimate_tax_line_data:
+column_types:
amount: float
net_amount_taxable: float
override_delta_amount: float
tax_inclusive_amount: float
tax_percent: float
purchase_order_data:
+column_types:
due_date: date
transaction_date: date
refund_receipt_data:
+column_types:
transaction_date: date
exchange_rate: float
refund_receipt_tax_line_data:
+column_types:
amount: float
Expand Down
Loading