You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`xero__cash_general_ledger`| New model | N/A | New end model | Cash-basis general ledger; one row per cash journal line. Enabled by default; disable by setting `xero__using_journal_cash: false`. |
10
+
|`xero__general_ledger`| Bug fix |`payment_id` excluded `ARPREPAYMENT`, `AROVERPAYMENT`| Now includes all prepayment and overpayment source types | Aligns AR prepayment/overpayment handling with AP counterparts already present.<br><br>**Possible breaking change**: Rows with `ARPREPAYMENT` or `AROVERPAYMENT` source types previously had a `NULL``payment_id` and will now be populated. |
11
+
|`stg_xero__journal_cash`<br>`stg_xero__journal_cash_tmp`| New staging models | N/A || Cash-basis journal header data from the `journal_cash` source table. |
12
+
|`stg_xero__journal_cash_line`<br>`stg_xero__journal_cash_line_tmp`| New staging models | N/A || Cash-basis journal line data from the `journal_cash_line` source table. |
13
+
|`stg_xero__journal_cash_line_has_tracking_category`<br>`stg_xero__journal_cash_line_has_tracking_category_tmp`| New staging models | N/A || Tracking category associations for cash journal lines. Enabled when `xero__using_journal_cash_line_tracking_category` is `true`. |
14
+
|`int_xero__journal_cash_line_pivoted_tracking_categories`| New intermediate model | N/A || Pivots tracking categories across cash journal lines. Enabled when both `xero__using_journal_cash_line_tracking_category` and `xero__using_tracking_categories` are `true`. |
10
15
11
16
## Feature Update
12
-
- Adds cash-basis journal support. Staging models for three new Xero source tables (`journal_cash`, `journal_cash_line`, `journal_cash_line_has_tracking_category`) and a new `xero__cash_general_ledger` end model are now available, enabled by default. Disable by setting `xero__using_journal_cash: false`. Cash-basis tracking category pivoting is also available via the `xero__using_journal_cash_line_tracking_category` variable. ([#73](https://github.com/fivetran/dbt_xero/pull/73))
17
+
- Adds cash-basis journal support via three new staging models (`stg_xero__journal_cash`, `stg_xero__journal_cash_line`, `stg_xero__journal_cash_line_has_tracking_category`) and the new `xero__cash_general_ledger` end model. The end model includes `contact_id`, `contact_name`, and `payment_id` resolution, mirrors the structure of `xero__general_ledger`, and adds an `accounting_basis` column set to `'cash'`. All models are enabled by default; disable by setting `xero__using_journal_cash: false`. Cash-basis tracking category pivoting is also available via `xero__using_journal_cash_line_tracking_category`.
Copy file name to clipboardExpand all lines: models/xero.yml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -224,6 +224,8 @@ models:
224
224
description: The identifier for the related bank transaction, if the source transaction is a cash receipt or payment.
225
225
- name: credit_note_id
226
226
description: The identifier for the related credit note, if the source transaction is a credit note.
227
+
- name: payment_id
228
+
description: The identifier for the related payment, if the source transaction is a payment (e.g. ACCRECPAYMENT, ACCPAYPAYMENT, ARCREDITPAYMENT, APCREDITPAYMENT, APPREPAYMENT, APOVERPAYMENT, ARPREPAYMENT, AROVERPAYMENT).
227
229
- name: contact_id
228
230
description: The identifier for the contact associated with the source transaction.
Copy file name to clipboardExpand all lines: models/xero__cash_general_ledger.sql
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -85,13 +85,14 @@ with journals as (
85
85
86
86
case when journals.source_typein ('ACCPAY', 'ACCREC') then journals.source_id end as invoice_id,
87
87
case when journals.source_typein ('CASHREC','CASHPAID') then journals.source_id end as bank_transaction_id,
88
-
case when journals.source_typein ('ACCPAYCREDIT','ACCRECCREDIT') then journals.source_id end as credit_note_id
88
+
case when journals.source_typein ('ACCPAYCREDIT','ACCRECCREDIT') then journals.source_id end as credit_note_id,
89
+
case when journals.source_typein ('ACCRECPAYMENT','ACCPAYPAYMENT','ARCREDITPAYMENT','APCREDITPAYMENT','APPREPAYMENT','APOVERPAYMENT','ARPREPAYMENT','AROVERPAYMENT') then journals.source_id end as payment_id
89
90
90
91
{% if using_tracking_categories and pivoted_columns|length >0 %}
Copy file name to clipboardExpand all lines: models/xero__general_ledger.sql
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -84,7 +84,7 @@ with journals as (
84
84
case when journals.source_typein ('CASHREC','CASHPAID') then journals.source_id end as bank_transaction_id,
85
85
case when journals.source_typein ('TRANSFER') then journals.source_id end as bank_transfer_id,
86
86
case when journals.source_typein ('MANJOURNAL') then journals.source_id end as manual_journal_id,
87
-
case when journals.source_typein ('APPREPAYMENT', 'APOVERPAYMENT', 'ACCPAYPAYMENT', 'ACCRECPAYMENT', 'ARCREDITPAYMENT', 'APCREDITPAYMENT') then journals.source_id end as payment_id,
87
+
case when journals.source_typein ('APPREPAYMENT', 'APOVERPAYMENT', 'ARPREPAYMENT', 'AROVERPAYMENT', 'ACCPAYPAYMENT', 'ACCRECPAYMENT', 'ARCREDITPAYMENT', 'APCREDITPAYMENT') then journals.source_id end as payment_id,
88
88
case when journals.source_typein ('ACCPAYCREDIT','ACCRECCREDIT') then journals.source_id end as credit_note_id
89
89
90
90
{% if using_tracking_categories and pivoted_columns|length >0 %}
0 commit comments