diff --git a/models/reporting/xero/schema.yml b/models/reporting/xero/schema.yml index b36b7d6..cdb021a 100644 --- a/models/reporting/xero/schema.yml +++ b/models/reporting/xero/schema.yml @@ -204,6 +204,14 @@ models: data_type: text description: A text based code that describes the Item. + - name: account_code + data_type: text + description: Accounting code for the related account. + + - name: account_name + data_type: text + description: Name for the related account. + - name: quantity data_type: numeric description: How much of the item is sold in its invoice. @@ -643,6 +651,14 @@ models: data_type: text description: A text based code that describes the Item. + - name: account_code + data_type: text + description: Accounting code for the related account. + + - name: account_name + data_type: text + description: Name for the related account. + - name: quantity data_type: numeric description: How much of the item is credited in this credit note. @@ -1179,6 +1195,14 @@ models: data_type: text description: "" + - name: account_code + data_type: text + description: Accounting code for the related account. + + - name: account_name + data_type: text + description: Name for the related account. + - name: quantity data_type: numeric description: "" diff --git a/models/reporting/xero/xero__credit_note_line_items.sql b/models/reporting/xero/xero__credit_note_line_items.sql index a05be83..afa4226 100644 --- a/models/reporting/xero/xero__credit_note_line_items.sql +++ b/models/reporting/xero/xero__credit_note_line_items.sql @@ -8,6 +8,8 @@ select id_line_item as id_line_item, id_item as id_item, item_code as item_code, + account_code as account_code, + account_name as account_name, quantity as quantity, unit_amount as unit_amount, line_amount_local_curr as line_amount_local_curr, diff --git a/models/reporting/xero/xero__invoice_line_items.sql b/models/reporting/xero/xero__invoice_line_items.sql index d6f713f..ccdb7a0 100644 --- a/models/reporting/xero/xero__invoice_line_items.sql +++ b/models/reporting/xero/xero__invoice_line_items.sql @@ -8,6 +8,8 @@ select id_line_item as id_line_item, id_item as id_item, item_code as item_code, + account_code as account_code, + account_name as account_name, quantity as quantity, unit_amount as unit_amount, line_amount_local_curr as line_amount_local_curr, diff --git a/models/reporting/xero/xero__sales_denom_mart.sql b/models/reporting/xero/xero__sales_denom_mart.sql index c045474..a5bdf80 100644 --- a/models/reporting/xero/xero__sales_denom_mart.sql +++ b/models/reporting/xero/xero__sales_denom_mart.sql @@ -7,6 +7,8 @@ select sdm.id_item as id_item, sdm.document_class as document_class, sdm.item_code as item_code, + sdm.account_code as account_code, + sdm.account_name as account_name, sdm.quantity as quantity, sdm.unit_amount as unit_amount, sdm.line_amount_local_curr as line_amount_local_curr,