BF [ 2153087 ] If i change the date for a SO the MRP date is not changed

This commit is contained in:
teo_sarca 2008-10-08 12:33:58 +00:00
parent 3f8b67b807
commit 2ef0681203
1 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,9 @@ import org.eevolution.model.MPPProductBOMLine;
*
* @author Jorg Janke
* @version $Id: MOrder.java,v 1.5 2006/10/06 00:42:24 jjanke Exp $
*
* @author Teo Sarca, www.arhipac.ro
* <li>BF [ 2153087 ] If i change the date for a SO the MRP date is not changed
*/
public class MOrder extends X_C_Order implements DocAction
{
@ -850,6 +853,12 @@ public class MOrder extends X_C_Order implements DocAction
return false;
}
// If Sales Order, set Date Promised (which is not visible) as Date Ordered - BF [ 2153087 ]
if (isSOTrx())
{
setDatePromised(getDateOrdered());
}
// New Record Doc Type - make sure DocType set to 0
if (newRecord && getC_DocType_ID() == 0)
setC_DocType_ID (0);