remove field 'to' and 'courier'

This commit is contained in:
Ubuntu 2022-03-21 21:12:40 +07:00
parent 508f88072f
commit 5cd245a388
1 changed files with 0 additions and 2 deletions

View File

@ -7,7 +7,6 @@
-- Final base SQL model -- Final base SQL model
-- depends_on: {{ ref('se_orders_ab3') }} -- depends_on: {{ ref('se_orders_ab3') }}
select select
{{ adapter.quote('to') }},
_id, _id,
{{ adapter.quote('client') }}::json->>'code' AS client_code, {{ adapter.quote('client') }}::json->>'code' AS client_code,
cast({{ adapter.quote('client') }}::json->'fee'->>'total' AS numeric) AS client_fee_total, cast({{ adapter.quote('client') }}::json->'fee'->>'total' AS numeric) AS client_fee_total,
@ -17,7 +16,6 @@ select
cast({{ adapter.quote('courier') }}::json->'fee'->>'total' AS numeric) AS courier_fee_total, cast({{ adapter.quote('courier') }}::json->'fee'->>'total' AS numeric) AS courier_fee_total,
cast({{ adapter.quote('courier') }}::json->'fee'->>'shipping' AS numeric) AS courier_fee_shipping, cast({{ adapter.quote('courier') }}::json->'fee'->>'shipping' AS numeric) AS courier_fee_shipping,
cast({{ adapter.quote('courier') }}::json->'fee'->>'other' AS numeric) AS courier_fee_other, cast({{ adapter.quote('courier') }}::json->'fee'->>'other' AS numeric) AS courier_fee_other,
courier,
cast(weight AS numeric) AS weight, cast(weight AS numeric) AS weight,
volume, volume,
code, code,