New model for deals total due amount
This commit is contained in:
parent
2746977671
commit
d50442e887
6 changed files with 129 additions and 82 deletions
11
models/reporting/xero/xero__deals_due_amounts.sql
Normal file
11
models/reporting/xero/xero__deals_due_amounts.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
with
|
||||
int_xero__deals_due_amounts as (
|
||||
select * from {{ ref("int_xero__deals_due_amounts") }}
|
||||
)
|
||||
select
|
||||
dda.id_contact as id_contact,
|
||||
dda.id_deal as id_deal,
|
||||
dda.contact_name as contact_name,
|
||||
dda.total_due_amount_in_gbp as total_due_amount_in_gbp,
|
||||
dda.outstanding_type as outstanding_type
|
||||
from int_xero__deals_due_amounts dda
|
||||
Loading…
Add table
Add a link
Reference in a new issue