diff --git a/migration/i1.0a-release/oracle/IDEMPIERE-675.2_oracle.sql b/migration/i1.0a-release/oracle/IDEMPIERE-675.2_oracle.sql new file mode 100644 index 0000000000..c9cc2adbf7 --- /dev/null +++ b/migration/i1.0a-release/oracle/IDEMPIERE-675.2_oracle.sql @@ -0,0 +1,11 @@ + +-- Mar 29, 2013 12:03:32 PM ICT +-- IDEMPIERE-675 - Internal Use with zero qty is dropping the inventory +UPDATE AD_Tab SET WhereClause='(SELECT COUNT(*) FROM C_DocType WHERE C_DocType.C_DocType_ID=M_Inventory.C_DocType_ID AND C_DocType.DocBaseType=''MMI'' AND C_DocType.DocSubTypeInv=''PI'') > 0',Updated=TO_DATE('2013-03-29 12:03:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=255 +; + +-- Mar 29, 2013 12:04:00 PM ICT +-- IDEMPIERE-675 - Internal Use with zero qty is dropping the inventory +UPDATE AD_Tab SET WhereClause='(SELECT COUNT(*) FROM C_DocType WHERE C_DocType.C_DocType_ID=M_Inventory.C_DocType_ID AND C_DocType.DocBaseType=''MMI'' AND C_DocType.DocSubTypeInv=''IU'') > 0',Updated=TO_DATE('2013-03-29 12:04:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=682 +; + diff --git a/migration/i1.0a-release/postgresql/IDEMPIERE-675.2_postgresql.sql b/migration/i1.0a-release/postgresql/IDEMPIERE-675.2_postgresql.sql new file mode 100644 index 0000000000..2b4b9ed562 --- /dev/null +++ b/migration/i1.0a-release/postgresql/IDEMPIERE-675.2_postgresql.sql @@ -0,0 +1,11 @@ + +-- Mar 29, 2013 12:03:32 PM ICT +-- IDEMPIERE-675 - Internal Use with zero qty is dropping the inventory +UPDATE AD_Tab SET WhereClause='(SELECT COUNT(*) FROM C_DocType WHERE C_DocType.C_DocType_ID=M_Inventory.C_DocType_ID AND C_DocType.DocBaseType=''MMI'' AND C_DocType.DocSubTypeInv=''PI'') > 0',Updated=TO_TIMESTAMP('2013-03-29 12:03:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=255 +; + +-- Mar 29, 2013 12:04:00 PM ICT +-- IDEMPIERE-675 - Internal Use with zero qty is dropping the inventory +UPDATE AD_Tab SET WhereClause='(SELECT COUNT(*) FROM C_DocType WHERE C_DocType.C_DocType_ID=M_Inventory.C_DocType_ID AND C_DocType.DocBaseType=''MMI'' AND C_DocType.DocSubTypeInv=''IU'') > 0',Updated=TO_TIMESTAMP('2013-03-29 12:04:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=682 +; +