Fixed view DRP Functionality
This commit is contained in:
parent
06cbca5a71
commit
3b4bf9c894
|
@ -10,7 +10,7 @@ SELECT
|
|||
FROM DD_Order o
|
||||
INNER JOIN DD_OrderLine l ON (o.DD_Order_ID=l.DD_Order_ID)
|
||||
--INNER JOIN M_Locator loc ON (loc.M_Locator_ID=l.M_Locator_ID)
|
||||
WHERE (o.DocStatus = 'DR' AND o.IsDelivered='N') -- Status must be CO - not CL/RE
|
||||
WHERE (o.DocStatus = 'CO' AND o.IsDelivered='N') -- Status must be CO - not CL/RE
|
||||
-- not Offers and open Walkin-Receipts
|
||||
AND o.C_DocType_ID IN (SELECT C_DocType_ID FROM C_DocType
|
||||
WHERE DocBaseType='DOO')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
--DROP VIEW RV_DD_ORDERDETAIL;
|
||||
CREATE OR REPLACE VIEW RV_DD_ORDERDETAIL AS
|
||||
SELECT l.AD_Client_ID, l.AD_Org_ID,
|
||||
l.IsActive, l.Created, l.CreatedBy, l.Updated, l.UpdatedBy,
|
||||
l.IsActive, l.Created, l.CreatedBy, l.Updated, l.UpdatedBy,o.DD_Order_ID,
|
||||
o.C_Order_ID, o.DocStatus, o.DocAction, o.C_DocType_ID, o.IsApproved, --o.IsCreditApproved,
|
||||
o.SalesRep_ID,
|
||||
o.IsDropShip,
|
||||
|
|
|
@ -10,7 +10,7 @@ SELECT
|
|||
FROM DD_Order o
|
||||
INNER JOIN DD_OrderLine l ON (o.DD_Order_ID=l.DD_Order_ID)
|
||||
--INNER JOIN M_Locator loc ON (loc.M_Locator_ID=l.M_Locator_ID)
|
||||
WHERE (o.DocStatus = 'DR' AND o.IsDelivered='N') -- Status must be CO - not CL/RE
|
||||
WHERE (o.DocStatus = 'CO' AND o.IsDelivered='N') -- Status must be CO - not CL/RE
|
||||
-- not Offers and open Walkin-Receipts
|
||||
AND o.C_DocType_ID IN (SELECT C_DocType_ID FROM C_DocType
|
||||
WHERE DocBaseType='DOO')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
--DROP VIEW RV_DD_ORDERDETAIL;
|
||||
DROP VIEW RV_DD_ORDERDETAIL;
|
||||
CREATE OR REPLACE VIEW RV_DD_ORDERDETAIL AS
|
||||
SELECT l.AD_Client_ID, l.AD_Org_ID,
|
||||
l.IsActive, l.Created, l.CreatedBy, l.Updated, l.UpdatedBy,
|
||||
l.IsActive, l.Created, l.CreatedBy, l.Updated, l.UpdatedBy,o.DD_Order_ID,
|
||||
o.C_Order_ID, o.DocStatus, o.DocAction, o.C_DocType_ID, o.IsApproved, --o.IsCreditApproved,
|
||||
o.SalesRep_ID,
|
||||
o.IsDropShip,
|
||||
|
|
Loading…
Reference in New Issue