From 0e9c60889437d6f809a89d6ca528cb032b99f82f Mon Sep 17 00:00:00 2001 From: Pablo Martin Date: Mon, 1 Jul 2024 11:39:40 +0200 Subject: [PATCH] more docs --- models/reporting/xero/schema.yaml | 13 +++++++++++++ models/staging/xero/schema.yml | 14 ++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/models/reporting/xero/schema.yaml b/models/reporting/xero/schema.yaml index a645fbc..876c65c 100644 --- a/models/reporting/xero/schema.yaml +++ b/models/reporting/xero/schema.yaml @@ -854,6 +854,19 @@ models: - RECEIVE-TRANSFER - SPEND-TRANSFER + - name: transaction_sign + data_type: numeric + description: | + The sign for the transactions. Spending transactions show as -1, + receiving transactions show as 1. This helps in converting the + transaction amounts in the right sign, since Xero brings all amounts + as positive by default. + tests: + - not_null + - accepted_values: + values: + - 1 + - -1 - name: transaction_status data_type: character varying diff --git a/models/staging/xero/schema.yml b/models/staging/xero/schema.yml index df88db4..32aa032 100644 --- a/models/staging/xero/schema.yml +++ b/models/staging/xero/schema.yml @@ -645,6 +645,20 @@ models: - SPEND-PREPAYMENT - RECEIVE-TRANSFER - SPEND-TRANSFER + + - name: transaction_sign + data_type: numeric + description: | + The sign for the transactions. Spending transactions show as -1, + receiving transactions show as 1. This helps in converting the + transaction amounts in the right sign, since Xero brings all amounts + as positive by default. + tests: + - not_null + - accepted_values: + values: + - 1 + - -1 - name: transaction_status data_type: character varying