with
    int_xero__credit_note_line_items as (
        select * from {{ ref("int_xero__credit_note_line_items") }}
    )

select
    id_credit_note as id_credit_note,
    credit_note_issued_at_utc as credit_note_issued_at_utc,
    credit_note_status as credit_note_status,
    id_contact as id_contact,
    id_line_item as id_line_item,
    id_item as id_item,
    item_code as item_code,
    account_code as account_code,
    account_name as account_name,
    quantity as quantity,
    unit_amount as unit_amount,
    line_amount_local_curr as line_amount_local_curr,
    line_amount_in_gbp as line_amount_in_gbp,
    line_amount_wo_taxes_local_curr as line_amount_wo_taxes_local_curr,
    line_amount_wo_taxes_in_gbp as line_amount_wo_taxes_in_gbp,
    tax_amount_local_curr as tax_amount_local_curr,
    tax_amount_in_gbp as tax_amount_in_gbp,
    tax_type as tax_type,
    credit_note_currency_iso_4217 as credit_note_currency_iso_4217,
    line_description as line_description
from int_xero__credit_note_line_items li
