Commit all views

This commit is contained in:
AzureAD\SylvainDUVERNAY
2026-04-23 09:24:37 +02:00
parent 79f6e6111f
commit 3986882771
16 changed files with 518 additions and 91 deletions

View File

@@ -27,7 +27,9 @@ CREATE OR REPLACE VIEW public.vw_utility_dim_physical_purchase_contract AS
''::character varying AS "strBookName",
''::character varying AS "strQuantityUom",
''::character varying AS "strIncotermCode",
NULL::date AS "dtmEstimatedBLDate"
NULL::date AS "dtmEstimatedBLDate",
''::character varying AS "strPricingType",
''::character varying AS "strCounterpartyCountry"
UNION ALL
SELECT pl.id AS "intPurchaseLineId",
pc.number AS "strContractNb",
@@ -62,7 +64,9 @@ UNION ALL
book."strValueName" AS "strBookName",
pu1.name AS "strQuantityUom",
COALESCE(inc.code, ''::character varying) AS "strIncotermCode",
COALESCE(bl.estimated_date, pl.to_del) AS "dtmEstimatedBLDate"
COALESCE(bl.estimated_date, pl.to_del) AS "dtmEstimatedBLDate",
pl.price_type AS "strPricingType",
COALESCE(ad."strCountry", 'Undefined'::character varying) AS "strCounterpartyCountry"
FROM (((((((((((((((((((purchase_line pl
JOIN purchase_purchase pc ON ((pl.purchase = pc.id)))
JOIN party_party pty ON ((pc.party = pty.id)))