Fixes Issue 26944:Create Return From Customer for doctype having POS subsotype
authorAtul Gaware <atul.gaware@openbravo.com>
Wed, 16 Jul 2014 01:44:04 +0530
changeset 24146 6fb861c99195
parent 24145 be933e11432c
child 24147 69e3ea6e8f8f
Fixes Issue 26944:Create Return From Customer for doctype having POS subsotype
src-db/database/model/functions/M_INOUT_CREATE.xml
--- a/src-db/database/model/functions/M_INOUT_CREATE.xml	Wed Jul 30 11:58:04 2014 +0530
+++ b/src-db/database/model/functions/M_INOUT_CREATE.xml	Wed Jul 16 01:44:04 2014 +0530
@@ -34,7 +34,7 @@
   * parts created by ComPiere are Copyright (C) ComPiere, Inc.;
   * All Rights Reserved.
   * Contributor(s): Openbravo SLU
-  * Contributions are Copyright (C) 2001-2012 Openbravo, S.L.U.
+  * Contributions are Copyright (C) 2001-2014 Openbravo, S.L.U.
   *
   * Specifically, this derivative work is based upon the following Compiere
   * file and version.
@@ -228,8 +228,7 @@
           AND o.C_DocType_ID IN (SELECT C_DocType_ID
                                  FROM C_DOCTYPE
                                  WHERE DocBaseType='SOO'
-                                   AND DocSubTypeSO NOT IN('ON', 'OB')
-                                   AND isReturn = 'N')
+                                   AND DocSubTypeSO NOT IN('ON', 'OB'))
           AND ((v_Selection='Y' AND o.IsSelected='Y')
               OR (v_Selection<>'Y'
                   AND (v_AD_Org_ID IS NULL OR v_AD_Org_ID=o.AD_Org_ID) 
@@ -275,8 +274,7 @@
           AND o.C_DocType_ID IN (SELECT C_DocType_ID
                                  FROM C_DOCTYPE
                                  WHERE DocBaseType='SOO'
-                                   AND DocSubTypeSO NOT IN('ON', 'OB')
-                                   AND isReturn = 'N')
+                                   AND DocSubTypeSO NOT IN('ON', 'OB'))
           -- Manually Selected
           AND ((v_Selection='Y' AND o.IsSelected='Y')
               OR (v_Selection<>'Y' -- Specific or individual organization