Fix Callout Distribution Order

This commit is contained in:
vpj-cd 2008-07-27 21:28:03 +00:00
parent 01ce90ed07
commit 8c3073d498
4 changed files with 855 additions and 19 deletions

View File

@ -0,0 +1,195 @@
/******************************************************************************
* Product: Adempiere ERP & CRM Smart Business Solution *
* This program is free software; you can redistribute it and/or modify it *
* under the terms version 2 of the GNU General Public License as published *
* by the Free Software Foundation. This program is distributed in the hope *
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
* See the GNU General Public License for more details. *
* You should have received a copy of the GNU General Public License along *
* with this program; if not, write to the Free Software Foundation, Inc., *
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
* For the text or an alternative of this public license, you may reach us *
* Copyright (C) 2003-2007 e-Evolution,SC. All Rights Reserved. *
* Contributor(s): Victor Perez www.e-evolution.com *
*****************************************************************************/
package org.eevolution.model;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Properties;
import org.compiere.model.CalloutEngine;
import org.compiere.model.GridField;
import org.compiere.model.GridTab;
import org.compiere.model.MOrderLine;
import org.compiere.model.MProduct;
import org.compiere.model.MStorage;
import org.compiere.model.MUOM;
import org.compiere.model.MUOMConversion;
import org.compiere.util.Env;
import org.compiere.util.Msg;
import org.compiere.wf.MWorkflow;
/**
* Distribution Order Callout
*
* @author Victor Perez
* @version $Id: CalloutOrder.java,v 1.23 2004/08/27 21:24:12 vpj-cd Exp $
*/
public class CalloutDistributionOrder extends CalloutEngine
{
/** Debug Steps */
private boolean steps = false;
/**
* Order Line - Quantity.
* - called from C_UOM_ID, QtyEntered, QtyOrdered
* - enforces qty UOM relationship
* @param ctx context
* @param WindowNo current Window No
* @param mTab Grid Tab
* @param mField Grid Field
* @param value New Value
* @return null or error message
*/
public String qty (Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value)
{
if (isCalloutActive() || value == null)
return "";
int M_Product_ID = Env.getContextAsInt(ctx, WindowNo, "M_Product_ID");
if (steps) log.warning("init - M_Product_ID=" + M_Product_ID + " - " );
BigDecimal QtyOrdered = Env.ZERO;
BigDecimal QtyEntered;
// No Product
if (M_Product_ID == 0)
{
QtyEntered = (BigDecimal)mTab.getValue("QtyEntered");
QtyOrdered = QtyEntered;
mTab.setValue("QtyOrdered", QtyOrdered);
}
// UOM Changed - convert from Entered -> Product
else if (mField.getColumnName().equals("C_UOM_ID"))
{
int C_UOM_To_ID = ((Integer)value).intValue();
QtyEntered = (BigDecimal)mTab.getValue("QtyEntered");
BigDecimal QtyEntered1 = QtyEntered.setScale(MUOM.getPrecision(ctx, C_UOM_To_ID), BigDecimal.ROUND_HALF_UP);
if (QtyEntered.compareTo(QtyEntered1) != 0)
{
log.fine("Corrected QtyEntered Scale UOM=" + C_UOM_To_ID
+ "; QtyEntered=" + QtyEntered + "->" + QtyEntered1);
QtyEntered = QtyEntered1;
mTab.setValue("QtyEntered", QtyEntered);
}
QtyOrdered = MUOMConversion.convertProductFrom (ctx, M_Product_ID,
C_UOM_To_ID, QtyEntered);
if (QtyOrdered == null)
QtyOrdered = QtyEntered;
boolean conversion = QtyEntered.compareTo(QtyOrdered) != 0;
Env.setContext(ctx, WindowNo, "UOMConversion", conversion ? "Y" : "N");
mTab.setValue("QtyOrdered", QtyOrdered);
}
// QtyEntered changed - calculate QtyOrdered
else if (mField.getColumnName().equals("QtyEntered"))
{
int C_UOM_To_ID = Env.getContextAsInt(ctx, WindowNo, "C_UOM_ID");
QtyEntered = (BigDecimal)value;
BigDecimal QtyEntered1 = QtyEntered.setScale(MUOM.getPrecision(ctx, C_UOM_To_ID), BigDecimal.ROUND_HALF_UP);
if (QtyEntered.compareTo(QtyEntered1) != 0)
{
log.fine("Corrected QtyEntered Scale UOM=" + C_UOM_To_ID
+ "; QtyEntered=" + QtyEntered + "->" + QtyEntered1);
QtyEntered = QtyEntered1;
mTab.setValue("QtyEntered", QtyEntered);
}
QtyOrdered = MUOMConversion.convertProductFrom (ctx, M_Product_ID,
C_UOM_To_ID, QtyEntered);
if (QtyOrdered == null)
QtyOrdered = QtyEntered;
boolean conversion = QtyEntered.compareTo(QtyOrdered) != 0;
log.fine("UOM=" + C_UOM_To_ID
+ ", QtyEntered=" + QtyEntered
+ " -> " + conversion
+ " QtyOrdered=" + QtyOrdered);
Env.setContext(ctx, WindowNo, "UOMConversion", conversion ? "Y" : "N");
mTab.setValue("QtyOrdered", QtyOrdered);
}
// QtyOrdered changed - calculate QtyEntered (should not happen)
else if (mField.getColumnName().equals("QtyOrdered"))
{
int C_UOM_To_ID = Env.getContextAsInt(ctx, WindowNo, "C_UOM_ID");
QtyOrdered = (BigDecimal)value;
int precision = MProduct.get(ctx, M_Product_ID).getUOMPrecision();
BigDecimal QtyOrdered1 = QtyOrdered.setScale(precision, BigDecimal.ROUND_HALF_UP);
if (QtyOrdered.compareTo(QtyOrdered1) != 0)
{
log.fine("Corrected QtyOrdered Scale "
+ QtyOrdered + "->" + QtyOrdered1);
QtyOrdered = QtyOrdered1;
mTab.setValue("QtyOrdered", QtyOrdered);
}
QtyEntered = MUOMConversion.convertProductTo (ctx, M_Product_ID,
C_UOM_To_ID, QtyOrdered);
if (QtyEntered == null)
QtyEntered = QtyOrdered;
boolean conversion = QtyOrdered.compareTo(QtyEntered) != 0;
log.fine("UOM=" + C_UOM_To_ID
+ ", QtyOrdered=" + QtyOrdered
+ " -> " + conversion
+ " QtyEntered=" + QtyEntered);
Env.setContext(ctx, WindowNo, "UOMConversion", conversion ? "Y" : "N");
mTab.setValue("QtyEntered", QtyEntered);
}
else
{
// QtyEntered = (BigDecimal)mTab.getValue("QtyEntered");
QtyOrdered = (BigDecimal)mTab.getValue("QtyOrdered");
}
// Storage
if (M_Product_ID != 0
&& Env.isSOTrx(ctx, WindowNo)
&& QtyOrdered.signum() > 0) // no negative (returns)
{
MProduct product = MProduct.get (ctx, M_Product_ID);
if (product.isStocked())
{
int M_Warehouse_ID = Env.getContextAsInt(ctx, WindowNo, "M_Warehouse_ID");
int M_AttributeSetInstance_ID = Env.getContextAsInt(ctx, WindowNo, "M_AttributeSetInstance_ID");
BigDecimal available = MStorage.getQtyAvailable
(M_Warehouse_ID, 0, M_Product_ID, M_AttributeSetInstance_ID, null);
if (available == null)
available = Env.ZERO;
if (available.signum() == 0)
mTab.fireDataStatusEEvent ("NoQtyAvailable", "0", false);
else if (available.compareTo(QtyOrdered) < 0)
mTab.fireDataStatusEEvent ("InsufficientQtyAvailable", available.toString(), false);
else
{
Integer C_OrderLine_ID = (Integer)mTab.getValue("C_OrderLine_ID");
if (C_OrderLine_ID == null)
C_OrderLine_ID = new Integer(0);
BigDecimal notReserved = MOrderLine.getNotReserved(ctx,
M_Warehouse_ID, M_Product_ID, M_AttributeSetInstance_ID,
C_OrderLine_ID.intValue());
if (notReserved == null)
notReserved = Env.ZERO;
BigDecimal total = available.subtract(notReserved);
if (total.compareTo(QtyOrdered) < 0)
{
String info = Msg.parseTranslation(ctx, "@QtyAvailable@=" + available
+ " - @QtyNotReserved@=" + notReserved + " = " + total);
mTab.fireDataStatusEEvent ("InsufficientQtyAvailable",
info, false);
}
}
}
}
//
return "";
} // qty
} // CalloutOrder

View File

@ -116,25 +116,6 @@ public class CalloutOrder extends CalloutEngine
Env.setContext(ctx, WindowNo, "UOMConversion", conversion ? "Y" : "N");
mTab.setValue("QtyEntered", QtyEntered);
}
/*String DocStatus = (String) mTab.getValue("DocStatus");
if (!DocStatus.equals(MPPOrder.STATUS_Completed))
{
Integer PP_Order_ID = (Integer)mTab.getValue("PP_Order_ID");
if (PP_Order_ID==null)
return "";
QtyOrdered = ((BigDecimal)mTab.getValue("QtyOrdered"));
MPPOrder order = new MPPOrder(ctx, PP_Order_ID,null);
MPPOrderBOMLine[] obl = MPPOrder.getLines(PP_Order_ID);
for (int i = 0 ; i < obl.length ; i ++)
{
order.setBOMLineQtys(obl[i]);
obl[i].save(null);
}
}*/
return qtyBatch(ctx,WindowNo,mTab,mField,value);
//return "";
} // qty

View File

@ -0,0 +1,330 @@
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54010
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54029
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54035
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54027
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54011
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54036
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54037
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54038
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54039
;
-- Jul 27, 2008 2:47:14 PM CDT
-- Order Distribution
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_DATE('2008-07-27 14:47:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54035
;
-- Jul 27, 2008 2:54:43 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54029
;
-- Jul 27, 2008 2:54:43 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54010
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54024
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=54033
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=54034
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=54029
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54010
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54035
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54027
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54011
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54036
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54037
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54038
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54039
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53050
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53049
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=472
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53051
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53067
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=381
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53088
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=128
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53068
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=445
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000041
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53069
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53070
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=181
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=484
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53050
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53049
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53051
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53067
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=381
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53088
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=128
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53068
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=445
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=472
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=1000041
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53069
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=53070
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=181
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=11, Updated=SysDate WHERE AD_Tree_ID=10 AND Node_ID=484
;
-- Jul 27, 2008 3:01:46 PM CDT
-- Order Distribution
UPDATE AD_Menu SET Name='Distribution Run Process',Updated=TO_DATE('2008-07-27 15:01:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=1000041
;
-- Jul 27, 2008 3:01:46 PM CDT
-- Order Distribution
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=1000041
;
-- Jul 27, 2008 3:04:48 PM CDT
-- Order Distribution
UPDATE AD_Process SET Description='Create Distribution Run orders based on Distribution List line items', Name='Distribution Run Orders', Value='M_DistributionRun Orders',Updated=TO_DATE('2008-07-27 15:04:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=1000037
;
-- Jul 27, 2008 3:04:48 PM CDT
-- Order Distribution
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=1000037
;
-- Jul 27, 2008 3:04:48 PM CDT
-- Order Distribution
UPDATE AD_Menu SET Description='Create Distribution Run orders based on Distribution List line items', IsActive='Y', Name='Distribution Run Orders',Updated=TO_DATE('2008-07-27 15:04:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=1000041
;
-- Jul 27, 2008 3:04:48 PM CDT
-- Order Distribution
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=1000041
;
-- Jul 27, 2008 3:32:28 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout='org.compiere.model.CalloutDistributionOrder.qty',Updated=TO_DATE('2008-07-27 15:32:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53933
;
-- Jul 27, 2008 3:32:43 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_DATE('2008-07-27 15:32:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53933
;
-- Jul 27, 2008 3:33:12 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout=NULL,Updated=TO_DATE('2008-07-27 15:33:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53948
;
-- Jul 27, 2008 3:33:18 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout=NULL,Updated=TO_DATE('2008-07-27 15:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53929
;
-- Jul 27, 2008 3:33:23 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_DATE('2008-07-27 15:33:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53954
;
-- Jul 27, 2008 3:33:29 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_DATE('2008-07-27 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53928
;

View File

@ -0,0 +1,330 @@
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54010
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54029
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54035
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54027
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54011
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54036
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54037
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54038
;
-- Jul 27, 2008 2:46:48 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=130,IsDisplayed='Y' WHERE AD_Field_ID=54039
;
-- Jul 27, 2008 2:47:14 PM CDT
-- Order Distribution
UPDATE AD_Field SET IsReadOnly='Y',Updated=TO_TIMESTAMP('2008-07-27 14:47:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Field_ID=54035
;
-- Jul 27, 2008 2:54:43 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54029
;
-- Jul 27, 2008 2:54:43 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54010
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=0,IsDisplayed='N' WHERE AD_Field_ID=54024
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=20,IsDisplayed='Y' WHERE AD_Field_ID=54033
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=30,IsDisplayed='Y' WHERE AD_Field_ID=54034
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=40,IsDisplayed='Y' WHERE AD_Field_ID=54029
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=50,IsDisplayed='Y' WHERE AD_Field_ID=54010
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=60,IsDisplayed='Y' WHERE AD_Field_ID=54035
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=70,IsDisplayed='Y' WHERE AD_Field_ID=54027
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=80,IsDisplayed='Y' WHERE AD_Field_ID=54011
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=90,IsDisplayed='Y' WHERE AD_Field_ID=54036
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=100,IsDisplayed='Y' WHERE AD_Field_ID=54037
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=110,IsDisplayed='Y' WHERE AD_Field_ID=54038
;
-- Jul 27, 2008 2:55:32 PM CDT
-- Order Distribution
UPDATE AD_Field SET SeqNo=120,IsDisplayed='Y' WHERE AD_Field_ID=54039
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53050
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53049
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=472
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53051
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53067
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=381
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53088
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=128
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53068
;
-- Jul 27, 2008 2:57:44 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=445
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000041
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53069
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53070
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=181
;
-- Jul 27, 2008 2:57:45 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=484
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53050
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53049
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53048, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53051
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=0, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53067
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=1, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=381
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=2, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53088
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=3, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=128
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=4, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53068
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=5, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=445
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=6, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=472
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=7, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=1000041
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=8, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53069
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=9, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=53070
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=10, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=181
;
-- Jul 27, 2008 2:57:49 PM CDT
-- Order Distribution
UPDATE AD_TreeNodeMM SET Parent_ID=53066, SeqNo=11, Updated=CURRENT_TIMESTAMP WHERE AD_Tree_ID=10 AND Node_ID=484
;
-- Jul 27, 2008 3:01:46 PM CDT
-- Order Distribution
UPDATE AD_Menu SET Name='Distribution Run Process',Updated=TO_TIMESTAMP('2008-07-27 15:01:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=1000041
;
-- Jul 27, 2008 3:01:46 PM CDT
-- Order Distribution
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=1000041
;
-- Jul 27, 2008 3:04:48 PM CDT
-- Order Distribution
UPDATE AD_Process SET Description='Create Distribution Run orders based on Distribution List line items', Name='Distribution Run Orders', Value='M_DistributionRun Orders',Updated=TO_TIMESTAMP('2008-07-27 15:04:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Process_ID=1000037
;
-- Jul 27, 2008 3:04:48 PM CDT
-- Order Distribution
UPDATE AD_Process_Trl SET IsTranslated='N' WHERE AD_Process_ID=1000037
;
-- Jul 27, 2008 3:04:48 PM CDT
-- Order Distribution
UPDATE AD_Menu SET Description='Create Distribution Run orders based on Distribution List line items', IsActive='Y', Name='Distribution Run Orders',Updated=TO_TIMESTAMP('2008-07-27 15:04:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Menu_ID=1000041
;
-- Jul 27, 2008 3:04:48 PM CDT
-- Order Distribution
UPDATE AD_Menu_Trl SET IsTranslated='N' WHERE AD_Menu_ID=1000041
;
-- Jul 27, 2008 3:32:28 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout='org.compiere.model.CalloutDistributionOrder.qty',Updated=TO_TIMESTAMP('2008-07-27 15:32:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53933
;
-- Jul 27, 2008 3:32:43 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_TIMESTAMP('2008-07-27 15:32:43','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53933
;
-- Jul 27, 2008 3:33:12 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout=NULL,Updated=TO_TIMESTAMP('2008-07-27 15:33:12','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53948
;
-- Jul 27, 2008 3:33:18 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout=NULL,Updated=TO_TIMESTAMP('2008-07-27 15:33:18','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53929
;
-- Jul 27, 2008 3:33:23 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_TIMESTAMP('2008-07-27 15:33:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53954
;
-- Jul 27, 2008 3:33:29 PM CDT
-- Order Distribution
UPDATE AD_Column SET Callout='org.eevolution.model.CalloutDistributionOrder.qty',Updated=TO_TIMESTAMP('2008-07-27 15:33:29','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=0 WHERE AD_Column_ID=53928
;