a few small details
This commit is contained in:
parent
bc4ca1cbc3
commit
eba636b16c
3 changed files with 6 additions and 3 deletions
|
|
@ -2,9 +2,8 @@ with stg_xero__contacts as (select * from {{ ref("stg_xero__contacts") }})
|
||||||
select
|
select
|
||||||
id_contact,
|
id_contact,
|
||||||
account_number,
|
account_number,
|
||||||
case
|
case when account_number ~ '^[0-9]{10,11}$' then account_number else null end::text
|
||||||
when account_number ~ '^[0-9]{10,11}$' then account_number else null
|
as id_deal,
|
||||||
end as id_deal,
|
|
||||||
contact_name,
|
contact_name,
|
||||||
is_customer,
|
is_customer,
|
||||||
is_supplier,
|
is_supplier,
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,8 @@ select
|
||||||
li.unit_amount,
|
li.unit_amount,
|
||||||
li.line_amount_local_curr,
|
li.line_amount_local_curr,
|
||||||
li.line_amount_in_gbp,
|
li.line_amount_in_gbp,
|
||||||
|
li.line_amount_wo_taxes_local_curr,
|
||||||
|
li.line_amount_wo_taxes_in_gbp,
|
||||||
li.tax_amount_local_curr,
|
li.tax_amount_local_curr,
|
||||||
li.tax_amount_in_gbp,
|
li.tax_amount_in_gbp,
|
||||||
li.tax_type,
|
li.tax_type,
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,8 @@ select
|
||||||
unit_amount as unit_amount,
|
unit_amount as unit_amount,
|
||||||
line_amount_local_curr as line_amount_local_curr,
|
line_amount_local_curr as line_amount_local_curr,
|
||||||
line_amount_in_gbp as line_amount_in_gbp,
|
line_amount_in_gbp as line_amount_in_gbp,
|
||||||
|
line_amount_wo_taxes_local_curr,
|
||||||
|
line_amount_wo_taxes_in_gbp,
|
||||||
tax_amount_local_curr as tax_amount_local_curr,
|
tax_amount_local_curr as tax_amount_local_curr,
|
||||||
tax_amount_in_gbp as tax_amount_in_gbp,
|
tax_amount_in_gbp as tax_amount_in_gbp,
|
||||||
tax_type as tax_type,
|
tax_type as tax_type,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue