Skip to content

Commit

Permalink
Merge pull request #2 from fivetran/minor_bug_fix
Browse files Browse the repository at this point in the history
source version update and formatting cleanup
  • Loading branch information
fivetran-joemarkiewicz authored Feb 1, 2021
2 parents 4c2f162 + 1fe9359 commit e6078cf
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dbt_project.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
config-version: 2

name: 'quickbooks'
version: '0.1.0'
version: '0.1.1'

require-dbt-version: [">=0.18.0", "<0.20.0"]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ final as (
transaction_id,
transaction_date,
amount * -1 as amount,
--amount as amount,
df_accounts.account_id,
'debit' as transaction_type,
'credit_memo' as transaction_source
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ invoice_join as (
where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id, bundle_income_accounts.account_id) is not null

{% else %}
where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id) is not null
where coalesce(invoice_lines.account_id, invoice_lines.sales_item_account_id, invoice_lines.sales_item_item_id, invoice_lines.item_id) is not null

{% endif %}
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ final as (
coalesce(invoice_lines.quantity, invoice_lines.sales_item_quantity) as item_quantity,
invoice_lines.sales_item_unit_price as item_unit_price,
case when invoice_lines.item_id is null
then coalesce(items.income_account_id, items.asset_account_id, items.expense_account_id)
then coalesce(items.income_account_id, items.expense_account_id, items.asset_account_id)
else invoice_lines.account_id
end as account_id,
coalesce(invoice_lines.discount_class_id, invoice_lines.sales_item_class_id) as class_id,
Expand Down
2 changes: 1 addition & 1 deletion packages.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages:
- package: fivetran/quickbooks_source
version: 0.1.0
version: 0.1.1

0 comments on commit e6078cf

Please sign in to comment.