FR [2897194] Advanced Zoom and RelationTypes - Thanks to Tobias Schöneberg (tobi42)
minor fix and added connection between BP and return windows Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2897194
This commit is contained in:
parent
dcd57a05c7
commit
91b2eca6b3
|
@ -22,7 +22,7 @@ import java.util.logging.Level;
|
|||
|
||||
import org.adempiere.exceptions.AdempiereException;
|
||||
import org.compiere.model.MQuery;
|
||||
import org.compiere.model.MRMA;
|
||||
import org.compiere.model.MTab;
|
||||
import org.compiere.model.PO;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
|
@ -42,7 +42,7 @@ public class GenericZoomProvider implements IZoomProvider {
|
|||
|
||||
public List<ZoomInfoFactory.ZoomInfo> retrieveZoomInfos(PO po) {
|
||||
|
||||
String sql = "SELECT DISTINCT ws.AD_Window_ID,ws.Name, wp.AD_Window_ID,wp.Name, t.TableName "
|
||||
String sql = "SELECT DISTINCT ws.AD_Window_ID, ws.Name, wp.AD_Window_ID, wp.Name, t.TableName, tts.AD_Tab_ID, ttp.AD_Tab_ID "
|
||||
+ "FROM AD_Table t ";
|
||||
boolean baseLanguage = Env.isBaseLanguage(Env.getCtx(), "AD_Window");
|
||||
if (baseLanguage)
|
||||
|
@ -51,11 +51,10 @@ public class GenericZoomProvider implements IZoomProvider {
|
|||
else
|
||||
sql += "INNER JOIN AD_Window_Trl ws ON (t.AD_Window_ID=ws.AD_Window_ID AND ws.AD_Language=?)"
|
||||
+ " LEFT OUTER JOIN AD_Window_Trl wp ON (t.PO_Window_ID=wp.AD_Window_ID AND wp.AD_Language=?) ";
|
||||
//
|
||||
sql += "WHERE t.TableName NOT LIKE 'I%'" // No Import
|
||||
+ " AND EXISTS (SELECT * FROM AD_Tab tt " // First Tab
|
||||
+ "WHERE (tt.AD_Window_ID=ws.AD_Window_ID OR tt.AD_Window_ID=wp.AD_Window_ID)"
|
||||
+ " AND tt.AD_Table_ID=t.AD_Table_ID AND tt.SeqNo=10)"
|
||||
// WARNING - HardCoded: first tab must have SeqNo = 10
|
||||
sql += "JOIN AD_Tab tts ON (tts.AD_Window_ID=ws.AD_Window_ID AND tts.AD_Table_ID=t.AD_Table_ID AND tts.SeqNo=10)" // first tab so
|
||||
+" LEFT OUTER JOIN AD_Tab ttp ON (ttp.AD_Window_ID=wp.AD_Window_ID AND ttp.AD_Table_ID=t.AD_Table_ID AND ttp.SeqNo=10)" // first tab po
|
||||
+" WHERE t.TableName NOT LIKE 'I%'" // No Import
|
||||
+ " AND t.AD_Table_ID IN "
|
||||
+ "(SELECT AD_Table_ID FROM AD_Column "
|
||||
+ "WHERE ColumnName=? AND IsKey='N' AND IsParent='N') " // #x
|
||||
|
@ -79,70 +78,48 @@ public class GenericZoomProvider implements IZoomProvider {
|
|||
int AD_Window_ID = rs.getInt(1);
|
||||
String Name = rs.getString(2);
|
||||
int PO_Window_ID = rs.getInt(3);
|
||||
int AD_Tab_ID = rs.getInt(6);
|
||||
int PO_Tab_ID = rs.getInt(7);
|
||||
String targetTableName = rs.getString(5);
|
||||
|
||||
if (PO_Window_ID == 0) {
|
||||
|
||||
final MQuery query = evaluateQuery(targetTableName,
|
||||
AD_Window_ID, Name, null, po);
|
||||
result.add(new ZoomInfoFactory.ZoomInfo(AD_Window_ID,
|
||||
query, Name));
|
||||
|
||||
} else {
|
||||
final MQuery query = evaluateQuery(targetTableName,
|
||||
AD_Window_ID, Name, Boolean.TRUE, po);
|
||||
result.add(new ZoomInfoFactory.ZoomInfo(AD_Window_ID,
|
||||
query, Name));
|
||||
// // PO
|
||||
}
|
||||
if (PO_Window_ID != 0) {
|
||||
|
||||
final MQuery query = evaluateQuery(targetTableName,
|
||||
AD_Tab_ID, Name, po);
|
||||
result.add(new ZoomInfoFactory.ZoomInfo(AD_Window_ID,
|
||||
query, Name));
|
||||
if (PO_Window_ID != 0 && PO_Tab_ID != 0) {
|
||||
Name = rs.getString(4);
|
||||
final MQuery query = evaluateQuery(targetTableName,
|
||||
PO_Window_ID, Name, Boolean.FALSE, po);
|
||||
|
||||
final MQuery querypo = evaluateQuery(targetTableName,
|
||||
PO_Tab_ID, Name, po);
|
||||
result.add(new ZoomInfoFactory.ZoomInfo(PO_Window_ID,
|
||||
query, Name));
|
||||
querypo, Name));
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
} catch (SQLException e) {
|
||||
logger.log(Level.SEVERE, sql, e);
|
||||
throw new AdempiereException();
|
||||
throw new AdempiereException(e);
|
||||
} finally {
|
||||
DB.close(rs, pstmt);
|
||||
}
|
||||
}
|
||||
|
||||
private static MQuery evaluateQuery(String targetTableName,
|
||||
int AD_Window_ID, String Name, Boolean isSO, final PO po) {
|
||||
|
||||
int AD_Tab_ID, String Name, final PO po) {
|
||||
|
||||
MTab tab = new MTab(Env.getCtx(), AD_Tab_ID, null);
|
||||
final MQuery query = new MQuery();
|
||||
|
||||
query.addRestriction(po.get_TableName() + "_ID=" + po.get_ID());
|
||||
if (tab.getWhereClause() != null && tab.getWhereClause().length() > 0)
|
||||
query.addRestriction(tab.getWhereClause());
|
||||
query.setZoomTableName(targetTableName);
|
||||
query.setZoomColumnName(po.get_KeyColumns()[0]);
|
||||
query.setZoomValue(po.get_ID());
|
||||
|
||||
String sql = "SELECT COUNT(*) FROM " + targetTableName + " WHERE "
|
||||
+ query.getWhereClause(false);
|
||||
String sqlAdd = "";
|
||||
if (isSO != null) {
|
||||
/*
|
||||
* For RMA, Material Receipt window should be loaded for
|
||||
* IsSOTrx=true and Shipment for IsSOTrx=false
|
||||
*/
|
||||
|
||||
if (MRMA.Table_Name.equals(po.get_TableName())
|
||||
&& (AD_Window_ID == 169 || AD_Window_ID == 184)) {
|
||||
isSO = !isSO;
|
||||
}
|
||||
sqlAdd = " AND IsSOTrx=" + (isSO.booleanValue() ? "'Y'" : "'N'");
|
||||
}
|
||||
int count = DB.getSQLValue(null, sql + sqlAdd);
|
||||
if (count < 0 && isSO != null) // error try again w/o SO
|
||||
count = DB.getSQLValue(null, sql);
|
||||
int count = DB.getSQLValue(null, sql);
|
||||
|
||||
query.setRecordCount(count);
|
||||
|
||||
|
|
|
@ -38,6 +38,7 @@ import org.compiere.model.MRefTable;
|
|||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.PO;
|
||||
import org.compiere.model.Query;
|
||||
import org.compiere.model.X_AD_RelationType;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
|
|
@ -92,10 +92,11 @@ public class ZoomInfoFactory {
|
|||
for (final ZoomInfo zoomInfo : MRelationType.retrieveZoomInfos(po,
|
||||
windowID)) {
|
||||
|
||||
logger.fine("Adding zoomInfo " + zoomInfo);
|
||||
|
||||
alreadySeen.add(zoomInfo.destinationDisplay);
|
||||
result.add(zoomInfo);
|
||||
if (alreadySeen.add(zoomInfo.destinationDisplay)) {
|
||||
|
||||
logger.fine("Adding zoomInfo " + zoomInfo);
|
||||
result.add(zoomInfo);
|
||||
}
|
||||
}
|
||||
|
||||
final GenericZoomProvider genericZoomProvider = new GenericZoomProvider();
|
||||
|
|
|
@ -14,11 +14,10 @@
|
|||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.adempiere.model;
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for AD_RelationType
|
||||
|
@ -165,19 +164,27 @@ public interface I_AD_RelationType
|
|||
/** Column name Role_Source */
|
||||
public static final String COLUMNNAME_Role_Source = "Role_Source";
|
||||
|
||||
/** Set Source Role */
|
||||
/** Set Source Role.
|
||||
* If set, this role will be used as label for the zoom destination instead of the destinations's window name
|
||||
*/
|
||||
public void setRole_Source (String Role_Source);
|
||||
|
||||
/** Get Source Role */
|
||||
/** Get Source Role.
|
||||
* If set, this role will be used as label for the zoom destination instead of the destinations's window name
|
||||
*/
|
||||
public String getRole_Source();
|
||||
|
||||
/** Column name Role_Target */
|
||||
public static final String COLUMNNAME_Role_Target = "Role_Target";
|
||||
|
||||
/** Set Target Role */
|
||||
/** Set Target Role.
|
||||
* If set, this role will be used as label for the zoom destination instead of the destinations's window name
|
||||
*/
|
||||
public void setRole_Target (String Role_Target);
|
||||
|
||||
/** Get Target Role */
|
||||
/** Get Target Role.
|
||||
* If set, this role will be used as label for the zoom destination instead of the destinations's window name
|
||||
*/
|
||||
public String getRole_Target();
|
||||
|
||||
/** Column name Type */
|
|
@ -15,11 +15,10 @@
|
|||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.adempiere.model;
|
||||
package org.compiere.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for AD_RelationType
|
||||
|
@ -31,7 +30,7 @@ public class X_AD_RelationType extends PO implements I_AD_RelationType, I_Persis
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20091113L;
|
||||
private static final long serialVersionUID = 20100322L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_AD_RelationType (Properties ctx, int AD_RelationType_ID, String trxName)
|
||||
|
@ -43,8 +42,6 @@ public class X_AD_RelationType extends PO implements I_AD_RelationType, I_Persis
|
|||
setIsDirected (false);
|
||||
// N
|
||||
setName (null);
|
||||
setRole_Source (null);
|
||||
setRole_Target (null);
|
||||
setType (null);
|
||||
// I
|
||||
} */
|
||||
|
@ -221,7 +218,9 @@ public class X_AD_RelationType extends PO implements I_AD_RelationType, I_Persis
|
|||
/** Invoice = Invoice */
|
||||
public static final String ROLE_SOURCE_Invoice = "Invoice";
|
||||
/** Set Source Role.
|
||||
@param Role_Source Source Role */
|
||||
@param Role_Source
|
||||
If set, this role will be used as label for the zoom destination instead of the destinations's window name
|
||||
*/
|
||||
public void setRole_Source (String Role_Source)
|
||||
{
|
||||
|
||||
|
@ -229,7 +228,8 @@ public class X_AD_RelationType extends PO implements I_AD_RelationType, I_Persis
|
|||
}
|
||||
|
||||
/** Get Source Role.
|
||||
@return Source Role */
|
||||
@return If set, this role will be used as label for the zoom destination instead of the destinations's window name
|
||||
*/
|
||||
public String getRole_Source ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Role_Source);
|
||||
|
@ -242,7 +242,9 @@ public class X_AD_RelationType extends PO implements I_AD_RelationType, I_Persis
|
|||
/** Invoice = Invoice */
|
||||
public static final String ROLE_TARGET_Invoice = "Invoice";
|
||||
/** Set Target Role.
|
||||
@param Role_Target Target Role */
|
||||
@param Role_Target
|
||||
If set, this role will be used as label for the zoom destination instead of the destinations's window name
|
||||
*/
|
||||
public void setRole_Target (String Role_Target)
|
||||
{
|
||||
|
||||
|
@ -250,7 +252,8 @@ public class X_AD_RelationType extends PO implements I_AD_RelationType, I_Persis
|
|||
}
|
||||
|
||||
/** Get Target Role.
|
||||
@return Target Role */
|
||||
@return If set, this role will be used as label for the zoom destination instead of the destinations's window name
|
||||
*/
|
||||
public String getRole_Target ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Role_Target);
|
|
@ -0,0 +1,393 @@
|
|||
SET SQLBLANKLINES ON
|
||||
|
||||
-- 20.03.2010 16:57:19 MEZ
|
||||
-- FR 2897194 Advanced Zoom and RelationTypes
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53345,TO_DATE('2010-03-20 16:57:18','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType C_Invoice_ID->M_InOut',TO_DATE('2010-03-20 16:57:18','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:57:19 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53345 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:57:55 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (3791,3521,0,TO_DATE('2010-03-20 16:57:55','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N',TO_DATE('2010-03-20 16:57:55','YYYY-MM-DD HH24:MI:SS'),100,0,'M_InOut_ID IN (
|
||||
select m.M_InOut_ID from M_InOut m
|
||||
left join M_InOutline ml on ml.M_InOut_ID = m.M_InOut_ID
|
||||
left join c_invoiceline il on il.M_InOutline_ID = ml.M_InOutline_ID
|
||||
where il.C_Invoice_ID=@C_Invoice_ID@
|
||||
)',53345,319)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:58:04 MEZ
|
||||
UPDATE AD_Ref_Table SET OrderByClause=NULL,Updated=TO_DATE('2010-03-20 16:58:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:58:43 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,Description,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53346,TO_DATE('2010-03-20 16:58:43','YYYY-MM-DD HH24:MI:SS'),100,'Finds C_Invoice_IDs for a given C_C_Order_ID','D','Y','N','RelType C_Order->C_Invoice',TO_DATE('2010-03-20 16:58:43','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:58:43 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53346 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:59:18 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (3492,3484,0,TO_DATE('2010-03-20 16:59:18','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_DATE('2010-03-20 16:59:18','YYYY-MM-DD HH24:MI:SS'),100,0,'C_Invoice_ID IN (
|
||||
select i.C_Invoice_ID from C_Invoice i
|
||||
left join C_InvoiceLine il on il.C_Invoice_ID = i.C_Invoice_ID
|
||||
left join C_OrderLine ol on ol.C_OrderLine_ID = il.C_OrderLine_ID
|
||||
where ol.C_Order_ID=@C_Order_ID@
|
||||
)',53346,318)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:00:00 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53347,TO_DATE('2010-03-20 16:59:59','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType C_Order->M_InOut',TO_DATE('2010-03-20 16:59:59','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:00:00 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53347 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:00:49 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (3791,3521,0,TO_DATE('2010-03-20 17:00:49','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_DATE('2010-03-20 17:00:49','YYYY-MM-DD HH24:MI:SS'),100,0,'M_InOut_ID IN (
|
||||
select i.M_InOut_ID from M_InOut i
|
||||
left join M_InOutline il on il.M_InOut_ID = i.M_InOut_ID
|
||||
left join C_OrderLine ol on ol.C_OrderLine_ID = il.C_OrderLine_ID
|
||||
where ol.C_Order_ID=@C_Order_ID@
|
||||
)',53347,319)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:01:14 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53348,TO_DATE('2010-03-20 17:01:13','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType M_InOut_ID->C_Invoice',TO_DATE('2010-03-20 17:01:13','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:01:14 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53348 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:01:48 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (3492,3484,0,TO_DATE('2010-03-20 17:01:48','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_DATE('2010-03-20 17:01:48','YYYY-MM-DD HH24:MI:SS'),100,0,'C_Invoice_ID IN (
|
||||
select i.C_Invoice_ID from C_Invoice i
|
||||
left join c_invoiceline il on il.C_Invoice_ID = i.C_Invoice_ID
|
||||
left join M_InOutline ml on ml.M_InOutline_ID = il.M_InOutline_ID
|
||||
where ml.M_InOut_ID=@M_InOut_ID@
|
||||
)',53348,318)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:02:14 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53349,TO_DATE('2010-03-20 17:02:08','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType M_InOut_ID->C_Order',TO_DATE('2010-03-20 17:02:08','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:02:14 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53349 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:02:48 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (2169,2161,0,TO_DATE('2010-03-20 17:02:48','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_DATE('2010-03-20 17:02:48','YYYY-MM-DD HH24:MI:SS'),100,0,'C_Order_ID IN (
|
||||
select o.c_order_id from c_order o
|
||||
left join c_orderline ol on ol.c_order_id = o.c_order_id
|
||||
left join M_InOutline il on il.c_orderline_id = ol.c_orderline_id
|
||||
where il.M_InOut_ID=@M_InOut_ID@
|
||||
)',53349,259)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:18:22 MEZ
|
||||
INSERT INTO AD_RelationType (AD_Org_ID,AD_Client_ID,AD_Reference_Target_ID,AD_RelationType_ID,Created,CreatedBy,IsActive,IsDirected,Name,Type,Updated,UpdatedBy,AD_Reference_Source_ID) VALUES (0,0,53347,50002,TO_DATE('2010-03-20 17:18:21','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Order<->InOut','I',TO_DATE('2010-03-20 17:18:21','YYYY-MM-DD HH24:MI:SS'),100,53349)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:19:18 MEZ
|
||||
INSERT INTO AD_RelationType (AD_Org_ID,AD_Client_ID,AD_Reference_Target_ID,AD_RelationType_ID,Created,CreatedBy,IsActive,IsDirected,Name,Type,Updated,UpdatedBy,AD_Reference_Source_ID) VALUES (0,0,53345,50003,TO_DATE('2010-03-20 17:19:17','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Invoice<->InOut','I',TO_DATE('2010-03-20 17:19:17','YYYY-MM-DD HH24:MI:SS'),100,53348)
|
||||
;
|
||||
|
||||
|
||||
-- 22.03.2010 07:40:40 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53352,TO_DATE('2010-03-22 07:40:39','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType C_BPartner_ID->Customer_RMA',TO_DATE('2010-03-22 07:40:39','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:40:40 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53352 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:44:03 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (2901,2893,0,TO_DATE('2010-03-22 07:44:03','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N',TO_DATE('2010-03-22 07:44:03','YYYY-MM-DD HH24:MI:SS'),100,0,'M_RMA.IsSOTrx=''Y'' AND M_RMA.C_BPartner_ID=@C_BPartner_ID@',53352,291)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:44:30 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53353,TO_DATE('2010-03-22 07:44:29','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType Customer_RMA->C_BPartner_ID',TO_DATE('2010-03-22 07:44:29','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:44:30 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53353 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:46:44 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (10841,10847,0,TO_DATE('2010-03-22 07:46:44','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','Value',TO_DATE('2010-03-22 07:46:44','YYYY-MM-DD HH24:MI:SS'),100,0,'C_BPartner_ID=@C_BPartner_ID@',53353,661)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:49:29 MEZ
|
||||
UPDATE AD_Ref_Table SET WhereClause='M_RMA.IsSOTrx=''Y'' AND M_RMA.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_DATE('2010-03-22 07:49:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:49:38 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType Customer_RMA<=C_BPartner_ID',Updated=TO_DATE('2010-03-22 07:49:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:49:38 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:50:20 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner_ID<=Customer_RMA',Updated=TO_DATE('2010-03-22 07:50:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:50:20 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:50:48 MEZ
|
||||
UPDATE AD_Ref_Table SET WhereClause='C_BPartner.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_DATE('2010-03-22 07:50:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:07 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner_ID <= Customer_RMA',Updated=TO_DATE('2010-03-22 07:51:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:07 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:13 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Invoice_ID <= C_Order',Updated=TO_DATE('2010-03-22 07:51:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53333
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:13 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53333
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:19 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Invoice_ID <= M_InOut',Updated=TO_DATE('2010-03-22 07:51:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:19 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:26 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order <= C_Invoice',Updated=TO_DATE('2010-03-22 07:51:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53346
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:26 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53346
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:29 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order_ID <= C_Invoice',Updated=TO_DATE('2010-03-22 07:51:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53334
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:29 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53334
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:32 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order <= M_InOut',Updated=TO_DATE('2010-03-22 07:51:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:32 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:35 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType Customer_RMA <= C_BPartner_ID',Updated=TO_DATE('2010-03-22 07:51:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:35 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:38 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut_ID <= C_Invoice',Updated=TO_DATE('2010-03-22 07:51:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53348
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:38 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53348
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:43 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut_ID <= C_Order',Updated=TO_DATE('2010-03-22 07:51:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53349
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:43 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53349
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:11 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order <= M_InOut_ID',Updated=TO_DATE('2010-03-22 07:52:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53349
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:11 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53349
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:22 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Invoice <= M_InOut_ID',Updated=TO_DATE('2010-03-22 07:52:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53348
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:22 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53348
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:58 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut <= C_Order',Updated=TO_DATE('2010-03-22 07:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:58 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:10 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Invoice <= C_Order_ID',Updated=TO_DATE('2010-03-22 07:53:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53334
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:10 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53334
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:48 MEZ
|
||||
DELETE FROM AD_Reference_Trl WHERE AD_Reference_ID=53346
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:48 MEZ
|
||||
DELETE FROM AD_Reference WHERE AD_Reference_ID=53346
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:59 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut <= C_Invoice_ID',Updated=TO_DATE('2010-03-22 07:53:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:59 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:18 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order <= C_Invoice_ID',Updated=TO_DATE('2010-03-22 07:55:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53333
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:18 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53333
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:23 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut <= C_Order_ID',Updated=TO_DATE('2010-03-22 07:55:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:23 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:52 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner <= Customer_RMA_ID',Updated=TO_DATE('2010-03-22 07:55:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:52 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:56:13 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner <= RMA_ID',Updated=TO_DATE('2010-03-22 07:56:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:56:13 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:56:33 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53354,TO_DATE('2010-03-22 07:56:32','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType Vendor_RMA <= C_BPartner_ID',TO_DATE('2010-03-22 07:56:32','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:56:33 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53354 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:57:23 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (10841,10847,0,TO_DATE('2010-03-22 07:57:23','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_DATE('2010-03-22 07:57:23','YYYY-MM-DD HH24:MI:SS'),100,0,'M_RMA.IsSOTrx=''N'' AND M_RMA.C_BPartner_ID=@C_BPartner_ID@',53354,661)
|
||||
;
|
||||
|
||||
-- 22.03.2010 08:00:23 MEZ
|
||||
INSERT INTO AD_RelationType (AD_Org_ID,AD_Client_ID,AD_Reference_Target_ID,AD_RelationType_ID,Created,CreatedBy,IsActive,IsDirected,Name,Type,Updated,UpdatedBy,AD_Reference_Source_ID) VALUES (0,0,53354,50004,TO_DATE('2010-03-22 08:00:22','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Customer<->VendorRMA','I',TO_DATE('2010-03-22 08:00:22','YYYY-MM-DD HH24:MI:SS'),100,53352)
|
||||
;
|
||||
|
||||
-- 22.03.2010 08:00:51 MEZ
|
||||
INSERT INTO AD_RelationType (AD_Org_ID,AD_Client_ID,AD_RelationType_ID,Created,CreatedBy,IsActive,IsDirected,Name,Type,Updated,UpdatedBy) VALUES (0,0,50005,TO_DATE('2010-03-22 08:00:50','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','BPartner<->CustomerRMA','I',TO_DATE('2010-03-22 08:00:50','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- 22.03.2010 08:00:57 MEZ
|
||||
UPDATE AD_RelationType SET Name='BPartner<->VendorRMA',Updated=TO_DATE('2010-03-22 08:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=50004
|
||||
;
|
||||
|
||||
-- 22.03.2010 08:01:16 MEZ
|
||||
UPDATE AD_RelationType SET AD_Reference_Target_ID=53353, AD_Reference_Source_ID=53352,Updated=TO_DATE('2010-03-22 08:01:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=50005
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:36:03 PM COT
|
||||
UPDATE AD_RelationType SET Name='BPartner<->VendorReturn',Updated=TO_DATE('2010-03-22 13:36:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=50004
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:37:03 PM COT
|
||||
UPDATE AD_Reference SET EntityType='D', Name='RelType Vendor Return <= C_BPartner_ID',Updated=TO_DATE('2010-03-22 13:37:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:37:03 PM COT
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:37:08 PM COT
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner <= Vendor Return',Updated=TO_DATE('2010-03-22 13:37:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:37:08 PM COT
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:39:08 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Display=3791, AD_Key=3521, AD_Table_ID=319, WhereClause='M_InOut.MovementType IN (''V+'') AND M_InOut.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_DATE('2010-03-22 13:39:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:39:54 PM COT
|
||||
UPDATE AD_RelationType SET Name='BPartner<->Customer Return',Updated=TO_DATE('2010-03-22 13:39:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=50005
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:40:28 PM COT
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner <= Vendor/Customer Return',Updated=TO_DATE('2010-03-22 13:40:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:40:28 PM COT
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:40:39 PM COT
|
||||
UPDATE AD_Reference SET Name='RelType Customer Return <= C_BPartner_ID',Updated=TO_DATE('2010-03-22 13:40:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:40:39 PM COT
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:41:09 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Display=3791, AD_Key=3521, AD_Table_ID=319, WhereClause='M_InOut.MovementType IN (''C-'') AND M_InOut.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_DATE('2010-03-22 13:41:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:48:48 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Window_ID=53097,Updated=TO_DATE('2010-03-22 13:48:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:49:28 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Window_ID=53098,Updated=TO_DATE('2010-03-22 13:49:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:49:55 PM COT
|
||||
UPDATE AD_Ref_Table SET WhereClause='M_InOut.MovementType IN (''V-'') AND M_InOut.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_DATE('2010-03-22 13:49:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:51:01 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Window_ID=53097, WhereClause='M_InOut.MovementType IN (''C+'') AND M_InOut.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_DATE('2010-03-22 13:51:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
|
@ -0,0 +1,390 @@
|
|||
-- 20.03.2010 16:57:19 MEZ
|
||||
-- FR 2897194 Advanced Zoom and RelationTypes
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53345,TO_TIMESTAMP('2010-03-20 16:57:18','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType C_Invoice_ID->M_InOut',TO_TIMESTAMP('2010-03-20 16:57:18','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:57:19 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53345 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:57:55 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (3791,3521,0,TO_TIMESTAMP('2010-03-20 16:57:55','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N',TO_TIMESTAMP('2010-03-20 16:57:55','YYYY-MM-DD HH24:MI:SS'),100,0,'M_InOut_ID IN (
|
||||
select m.M_InOut_ID from M_InOut m
|
||||
left join M_InOutline ml on ml.M_InOut_ID = m.M_InOut_ID
|
||||
left join c_invoiceline il on il.M_InOutline_ID = ml.M_InOutline_ID
|
||||
where il.C_Invoice_ID=@C_Invoice_ID@
|
||||
)',53345,319)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:58:04 MEZ
|
||||
UPDATE AD_Ref_Table SET OrderByClause=NULL,Updated=TO_TIMESTAMP('2010-03-20 16:58:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:58:43 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,Description,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53346,TO_TIMESTAMP('2010-03-20 16:58:43','YYYY-MM-DD HH24:MI:SS'),100,'Finds C_Invoice_IDs for a given C_C_Order_ID','D','Y','N','RelType C_Order->C_Invoice',TO_TIMESTAMP('2010-03-20 16:58:43','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:58:43 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53346 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 16:59:18 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (3492,3484,0,TO_TIMESTAMP('2010-03-20 16:59:18','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_TIMESTAMP('2010-03-20 16:59:18','YYYY-MM-DD HH24:MI:SS'),100,0,'C_Invoice_ID IN (
|
||||
select i.C_Invoice_ID from C_Invoice i
|
||||
left join C_InvoiceLine il on il.C_Invoice_ID = i.C_Invoice_ID
|
||||
left join C_OrderLine ol on ol.C_OrderLine_ID = il.C_OrderLine_ID
|
||||
where ol.C_Order_ID=@C_Order_ID@
|
||||
)',53346,318)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:00:00 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53347,TO_TIMESTAMP('2010-03-20 16:59:59','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType C_Order->M_InOut',TO_TIMESTAMP('2010-03-20 16:59:59','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:00:00 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53347 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:00:49 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (3791,3521,0,TO_TIMESTAMP('2010-03-20 17:00:49','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_TIMESTAMP('2010-03-20 17:00:49','YYYY-MM-DD HH24:MI:SS'),100,0,'M_InOut_ID IN (
|
||||
select i.M_InOut_ID from M_InOut i
|
||||
left join M_InOutline il on il.M_InOut_ID = i.M_InOut_ID
|
||||
left join C_OrderLine ol on ol.C_OrderLine_ID = il.C_OrderLine_ID
|
||||
where ol.C_Order_ID=@C_Order_ID@
|
||||
)',53347,319)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:01:14 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53348,TO_TIMESTAMP('2010-03-20 17:01:13','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType M_InOut_ID->C_Invoice',TO_TIMESTAMP('2010-03-20 17:01:13','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:01:14 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53348 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:01:48 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (3492,3484,0,TO_TIMESTAMP('2010-03-20 17:01:48','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_TIMESTAMP('2010-03-20 17:01:48','YYYY-MM-DD HH24:MI:SS'),100,0,'C_Invoice_ID IN (
|
||||
select i.C_Invoice_ID from C_Invoice i
|
||||
left join c_invoiceline il on il.C_Invoice_ID = i.C_Invoice_ID
|
||||
left join M_InOutline ml on ml.M_InOutline_ID = il.M_InOutline_ID
|
||||
where ml.M_InOut_ID=@M_InOut_ID@
|
||||
)',53348,318)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:02:14 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53349,TO_TIMESTAMP('2010-03-20 17:02:08','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType M_InOut_ID->C_Order',TO_TIMESTAMP('2010-03-20 17:02:08','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:02:14 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53349 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:02:48 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (2169,2161,0,TO_TIMESTAMP('2010-03-20 17:02:48','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_TIMESTAMP('2010-03-20 17:02:48','YYYY-MM-DD HH24:MI:SS'),100,0,'C_Order_ID IN (
|
||||
select o.c_order_id from c_order o
|
||||
left join c_orderline ol on ol.c_order_id = o.c_order_id
|
||||
left join M_InOutline il on il.c_orderline_id = ol.c_orderline_id
|
||||
where il.M_InOut_ID=@M_InOut_ID@
|
||||
)',53349,259)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:18:22 MEZ
|
||||
INSERT INTO AD_RelationType (AD_Org_ID,AD_Client_ID,AD_Reference_Target_ID,AD_RelationType_ID,Created,CreatedBy,IsActive,IsDirected,Name,Type,Updated,UpdatedBy,AD_Reference_Source_ID) VALUES (0,0,53347,50002,TO_TIMESTAMP('2010-03-20 17:18:21','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Order<->InOut','I',TO_TIMESTAMP('2010-03-20 17:18:21','YYYY-MM-DD HH24:MI:SS'),100,53349)
|
||||
;
|
||||
|
||||
-- 20.03.2010 17:19:18 MEZ
|
||||
INSERT INTO AD_RelationType (AD_Org_ID,AD_Client_ID,AD_Reference_Target_ID,AD_RelationType_ID,Created,CreatedBy,IsActive,IsDirected,Name,Type,Updated,UpdatedBy,AD_Reference_Source_ID) VALUES (0,0,53345,50003,TO_TIMESTAMP('2010-03-20 17:19:17','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Invoice<->InOut','I',TO_TIMESTAMP('2010-03-20 17:19:17','YYYY-MM-DD HH24:MI:SS'),100,53348)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:40:40 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53352,TO_TIMESTAMP('2010-03-22 07:40:39','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType C_BPartner_ID->Customer_RMA',TO_TIMESTAMP('2010-03-22 07:40:39','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:40:40 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53352 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:44:03 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (2901,2893,0,TO_TIMESTAMP('2010-03-22 07:44:03','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N',TO_TIMESTAMP('2010-03-22 07:44:03','YYYY-MM-DD HH24:MI:SS'),100,0,'M_RMA.IsSOTrx=''Y'' AND M_RMA.C_BPartner_ID=@C_BPartner_ID@',53352,291)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:44:30 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53353,TO_TIMESTAMP('2010-03-22 07:44:29','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType Customer_RMA->C_BPartner_ID',TO_TIMESTAMP('2010-03-22 07:44:29','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:44:30 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53353 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:46:44 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (10841,10847,0,TO_TIMESTAMP('2010-03-22 07:46:44','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','Value',TO_TIMESTAMP('2010-03-22 07:46:44','YYYY-MM-DD HH24:MI:SS'),100,0,'C_BPartner_ID=@C_BPartner_ID@',53353,661)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:49:29 MEZ
|
||||
UPDATE AD_Ref_Table SET WhereClause='M_RMA.IsSOTrx=''Y'' AND M_RMA.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_TIMESTAMP('2010-03-22 07:49:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:49:38 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType Customer_RMA<=C_BPartner_ID',Updated=TO_TIMESTAMP('2010-03-22 07:49:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:49:38 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:50:20 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner_ID<=Customer_RMA',Updated=TO_TIMESTAMP('2010-03-22 07:50:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:50:20 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:50:48 MEZ
|
||||
UPDATE AD_Ref_Table SET WhereClause='C_BPartner.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_TIMESTAMP('2010-03-22 07:50:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:07 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner_ID <= Customer_RMA',Updated=TO_TIMESTAMP('2010-03-22 07:51:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:07 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:13 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Invoice_ID <= C_Order',Updated=TO_TIMESTAMP('2010-03-22 07:51:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53333
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:13 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53333
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:19 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Invoice_ID <= M_InOut',Updated=TO_TIMESTAMP('2010-03-22 07:51:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:19 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:26 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order <= C_Invoice',Updated=TO_TIMESTAMP('2010-03-22 07:51:26','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53346
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:26 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53346
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:29 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order_ID <= C_Invoice',Updated=TO_TIMESTAMP('2010-03-22 07:51:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53334
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:29 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53334
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:32 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order <= M_InOut',Updated=TO_TIMESTAMP('2010-03-22 07:51:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:32 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:35 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType Customer_RMA <= C_BPartner_ID',Updated=TO_TIMESTAMP('2010-03-22 07:51:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:35 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:38 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut_ID <= C_Invoice',Updated=TO_TIMESTAMP('2010-03-22 07:51:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53348
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:38 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53348
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:43 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut_ID <= C_Order',Updated=TO_TIMESTAMP('2010-03-22 07:51:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53349
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:51:43 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53349
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:11 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order <= M_InOut_ID',Updated=TO_TIMESTAMP('2010-03-22 07:52:11','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53349
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:11 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53349
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:22 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Invoice <= M_InOut_ID',Updated=TO_TIMESTAMP('2010-03-22 07:52:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53348
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:22 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53348
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:58 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut <= C_Order',Updated=TO_TIMESTAMP('2010-03-22 07:52:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:52:58 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:10 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Invoice <= C_Order_ID',Updated=TO_TIMESTAMP('2010-03-22 07:53:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53334
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:10 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53334
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:48 MEZ
|
||||
DELETE FROM AD_Reference_Trl WHERE AD_Reference_ID=53346
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:48 MEZ
|
||||
DELETE FROM AD_Reference WHERE AD_Reference_ID=53346
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:59 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut <= C_Invoice_ID',Updated=TO_TIMESTAMP('2010-03-22 07:53:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:53:59 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53345
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:18 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_Order <= C_Invoice_ID',Updated=TO_TIMESTAMP('2010-03-22 07:55:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53333
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:18 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53333
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:23 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType M_InOut <= C_Order_ID',Updated=TO_TIMESTAMP('2010-03-22 07:55:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:23 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53347
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:52 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner <= Customer_RMA_ID',Updated=TO_TIMESTAMP('2010-03-22 07:55:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:55:52 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:56:13 MEZ
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner <= RMA_ID',Updated=TO_TIMESTAMP('2010-03-22 07:56:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:56:13 MEZ
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:56:33 MEZ
|
||||
INSERT INTO AD_Reference (AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType,AD_Client_ID) VALUES (0,53354,TO_TIMESTAMP('2010-03-22 07:56:32','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','RelType Vendor_RMA <= C_BPartner_ID',TO_TIMESTAMP('2010-03-22 07:56:32','YYYY-MM-DD HH24:MI:SS'),100,'T',0)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:56:33 MEZ
|
||||
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language,t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y' AND l.IsSystemLanguage='Y' AND l.IsBaseLanguage='N' AND t.AD_Reference_ID=53354 AND NOT EXISTS (SELECT * FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
|
||||
;
|
||||
|
||||
-- 22.03.2010 07:57:23 MEZ
|
||||
INSERT INTO AD_Ref_Table (AD_Display,AD_Key,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsValueDisplayed,OrderByClause,Updated,UpdatedBy,AD_Client_ID,WhereClause,AD_Reference_ID,AD_Table_ID) VALUES (10841,10847,0,TO_TIMESTAMP('2010-03-22 07:57:23','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','DocumentNo',TO_TIMESTAMP('2010-03-22 07:57:23','YYYY-MM-DD HH24:MI:SS'),100,0,'M_RMA.IsSOTrx=''N'' AND M_RMA.C_BPartner_ID=@C_BPartner_ID@',53354,661)
|
||||
;
|
||||
|
||||
-- 22.03.2010 08:00:23 MEZ
|
||||
INSERT INTO AD_RelationType (AD_Org_ID,AD_Client_ID,AD_Reference_Target_ID,AD_RelationType_ID,Created,CreatedBy,IsActive,IsDirected,Name,Type,Updated,UpdatedBy,AD_Reference_Source_ID) VALUES (0,0,53354,50004,TO_TIMESTAMP('2010-03-22 08:00:22','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','Customer<->VendorRMA','I',TO_TIMESTAMP('2010-03-22 08:00:22','YYYY-MM-DD HH24:MI:SS'),100,53352)
|
||||
;
|
||||
|
||||
-- 22.03.2010 08:00:51 MEZ
|
||||
INSERT INTO AD_RelationType (AD_Org_ID,AD_Client_ID,AD_RelationType_ID,Created,CreatedBy,IsActive,IsDirected,Name,Type,Updated,UpdatedBy) VALUES (0,0,50005,TO_TIMESTAMP('2010-03-22 08:00:50','YYYY-MM-DD HH24:MI:SS'),100,'Y','N','BPartner<->CustomerRMA','I',TO_TIMESTAMP('2010-03-22 08:00:50','YYYY-MM-DD HH24:MI:SS'),100)
|
||||
;
|
||||
|
||||
-- 22.03.2010 08:00:57 MEZ
|
||||
UPDATE AD_RelationType SET Name='BPartner<->VendorRMA',Updated=TO_TIMESTAMP('2010-03-22 08:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=50004
|
||||
;
|
||||
|
||||
-- 22.03.2010 08:01:16 MEZ
|
||||
UPDATE AD_RelationType SET AD_Reference_Target_ID=53353, AD_Reference_Source_ID=53352,Updated=TO_TIMESTAMP('2010-03-22 08:01:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=50005
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:36:03 PM COT
|
||||
UPDATE AD_RelationType SET Name='BPartner<->VendorReturn',Updated=TO_TIMESTAMP('2010-03-22 13:36:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=50004
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:37:03 PM COT
|
||||
UPDATE AD_Reference SET EntityType='D', Name='RelType Vendor Return <= C_BPartner_ID',Updated=TO_TIMESTAMP('2010-03-22 13:37:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:37:03 PM COT
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:37:08 PM COT
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner <= Vendor Return',Updated=TO_TIMESTAMP('2010-03-22 13:37:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:37:08 PM COT
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:39:08 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Display=3791, AD_Key=3521, AD_Table_ID=319, WhereClause='M_InOut.MovementType IN (''V+'') AND M_InOut.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_TIMESTAMP('2010-03-22 13:39:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:39:54 PM COT
|
||||
UPDATE AD_RelationType SET Name='BPartner<->Customer Return',Updated=TO_TIMESTAMP('2010-03-22 13:39:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_RelationType_ID=50005
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:40:28 PM COT
|
||||
UPDATE AD_Reference SET Name='RelType C_BPartner <= Vendor/Customer Return',Updated=TO_TIMESTAMP('2010-03-22 13:40:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:40:28 PM COT
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53352
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:40:39 PM COT
|
||||
UPDATE AD_Reference SET Name='RelType Customer Return <= C_BPartner_ID',Updated=TO_TIMESTAMP('2010-03-22 13:40:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:40:39 PM COT
|
||||
UPDATE AD_Reference_Trl SET IsTranslated='N' WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:41:09 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Display=3791, AD_Key=3521, AD_Table_ID=319, WhereClause='M_InOut.MovementType IN (''C-'') AND M_InOut.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_TIMESTAMP('2010-03-22 13:41:09','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:48:48 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Window_ID=53097,Updated=TO_TIMESTAMP('2010-03-22 13:48:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:49:28 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Window_ID=53098,Updated=TO_TIMESTAMP('2010-03-22 13:49:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:49:55 PM COT
|
||||
UPDATE AD_Ref_Table SET WhereClause='M_InOut.MovementType IN (''V-'') AND M_InOut.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_TIMESTAMP('2010-03-22 13:49:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53354
|
||||
;
|
||||
|
||||
-- Mar 22, 2010 1:51:01 PM COT
|
||||
UPDATE AD_Ref_Table SET AD_Window_ID=53097, WhereClause='M_InOut.MovementType IN (''C+'') AND M_InOut.C_BPartner_ID=@C_BPartner_ID@',Updated=TO_TIMESTAMP('2010-03-22 13:51:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Reference_ID=53353
|
||||
;
|
||||
|
Loading…
Reference in New Issue