First initial commit
This commit is contained in:
17
vw_utility_instructed_lots.sql
Normal file
17
vw_utility_instructed_lots.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
-- View: public.vw_utility_instructed_lots
|
||||
|
||||
-- DROP VIEW public.vw_utility_instructed_lots;
|
||||
|
||||
CREATE OR REPLACE VIEW public.vw_utility_instructed_lots AS
|
||||
SELECT mvt."intLotId",
|
||||
mvt."intShipmentId",
|
||||
mvt."intPurchaseLineId",
|
||||
mvt."dblQuantity",
|
||||
mvt."strUnit",
|
||||
mvt."dblQuantityKg"
|
||||
FROM vw_utility_stock_movements mvt
|
||||
JOIN vw_utility_shipment_in spt ON mvt."intShipmentId" = spt."intShipmentId"
|
||||
WHERE 1 = 1 AND mvt."strMovementType" = 'Inbound'::text AND spt."strState"::text = 'draft'::text;
|
||||
|
||||
ALTER TABLE public.vw_utility_instructed_lots
|
||||
OWNER TO postgres;
|
||||
Reference in New Issue
Block a user