Revert "remove unnecessary nested objects since they can be joined in dwh"
This reverts commit 4cc9644feb.
This commit is contained in:
parent
4cc9644feb
commit
3706a0c21c
2 changed files with 4 additions and 0 deletions
|
|
@ -24,7 +24,9 @@ select
|
||||||
) as remaining_credit_in_gbp,
|
) as remaining_credit_in_gbp,
|
||||||
applied_amount,
|
applied_amount,
|
||||||
credit_note_status,
|
credit_note_status,
|
||||||
|
full_contact_details,
|
||||||
credit_note_due_date,
|
credit_note_due_date,
|
||||||
|
line_items,
|
||||||
date_string,
|
date_string,
|
||||||
due_date_string,
|
due_date_string,
|
||||||
allocations,
|
allocations,
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,10 @@ select
|
||||||
total_paid_local_curr,
|
total_paid_local_curr,
|
||||||
(total_paid_local_curr * exchange_rate_to_gbp)::numeric(18, 4) as total_paid_in_gbp,
|
(total_paid_local_curr * exchange_rate_to_gbp)::numeric(18, 4) as total_paid_in_gbp,
|
||||||
invoice_status,
|
invoice_status,
|
||||||
|
full_contact_details,
|
||||||
payments,
|
payments,
|
||||||
has_errors,
|
has_errors,
|
||||||
|
line_items,
|
||||||
credit_notes,
|
credit_notes,
|
||||||
prepayments,
|
prepayments,
|
||||||
overpayments,
|
overpayments,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue