no message

This commit is contained in:
AzureAD\SylvainDUVERNAY
2026-02-02 13:15:58 +01:00
parent 022f4e0a2a
commit 7f99b78c8a
16 changed files with 1031 additions and 69 deletions

View File

@@ -0,0 +1,42 @@
-- View: public.vw_bi_purchase_follow_up
-- DROP VIEW public.vw_bi_purchase_follow_up;
CREATE OR REPLACE VIEW public.vw_bi_purchase_follow_up AS
SELECT dpc."Contract Nb",
dpc."Supplier",
dpc."Contract Ref",
dpc."Contract Date",
dpc."Contract Status",
dpc."Payment Terms",
dpc."Currency",
dpc."Weight Basis",
dpc."Broker",
dpc."Certification",
dpc."Association",
dpc."Crop",
dpc."Tolerance Min %",
dpc."Tolerance Max %",
dpc."Inco Terms",
dpc."Loading Place",
dpc."Destination Place",
dpc."Product",
dpc."Delivery Period",
fpc."Delivery Date From",
fpc."Delivery DateTo",
fpc."Quantity",
fpc."In Transit Quantity",
fpc."Dropship Quantity",
fpc."Received Quantity",
fpc."Price",
fpc."Unit Price",
fpc."Theoretical Quantity",
fpc."Line Amount",
fpc."Physical Quantity",
fpc."Open Quantity",
fpc."Instructed Quantity"
FROM vw_bi_fct_purchase_physical_contract fpc
JOIN vw_bi_dim_purchase_physical_contract dpc ON fpc."PurchaseLineId" = dpc."intPurchaseLineId";
ALTER TABLE public.vw_bi_purchase_follow_up
OWNER TO postgres;