more credit note work
This commit is contained in:
parent
8f6e92c187
commit
791cbd47e8
3 changed files with 72 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
with stg_xero__credit_notes as (select * from {{ ref("stg_xero__credit_notes") }}),
|
||||
with stg_xero__credit_notes as (select * from {{ ref("stg_xero__credit_notes") }})
|
||||
|
||||
select
|
||||
id_credit_note,
|
||||
|
|
@ -8,7 +8,7 @@ select
|
|||
credit_note_issued_at_utc,
|
||||
credit_note_issued_date_utc,
|
||||
credit_note_type,
|
||||
invoice_currency_iso_4217,
|
||||
credit_note_currency_iso_4217,
|
||||
exchange_rate_to_gbp,
|
||||
total_amount_local_curr,
|
||||
(total_amount_local_curr * exchange_rate_to_gbp)::numeric(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue