diff --git a/migration/352a-trunk/255_FR_2038014_Material_Receipt_To_DRP.sql b/migration/352a-trunk/255_FR_2038014_Material_Receipt_To_DRP.sql index d20233bf8f..c93d62a1e5 100644 --- a/migration/352a-trunk/255_FR_2038014_Material_Receipt_To_DRP.sql +++ b/migration/352a-trunk/255_FR_2038014_Material_Receipt_To_DRP.sql @@ -40,7 +40,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') diff --git a/migration/352a-trunk/postgresql/255_FR_2038014_Material_Receipt_To_DRP.sql b/migration/352a-trunk/postgresql/255_FR_2038014_Material_Receipt_To_DRP.sql index 5b6f7bfcb9..d4489c72b4 100644 --- a/migration/352a-trunk/postgresql/255_FR_2038014_Material_Receipt_To_DRP.sql +++ b/migration/352a-trunk/postgresql/255_FR_2038014_Material_Receipt_To_DRP.sql @@ -41,7 +41,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')