BF (2440799) - Copy Lines From is not setting Reserved Qty to 0
https://sourceforge.net/tracker/?func=detail&aid=2440799&group_id=176962&atid=879332
This commit is contained in:
parent
678e6ee604
commit
a96bb62a67
|
@ -512,6 +512,13 @@ public class MOrder extends X_C_Order implements DocAction
|
|||
MOrderLine line = new MOrderLine (this);
|
||||
PO.copyValues(fromLines[i], line, getAD_Client_ID(), getAD_Org_ID());
|
||||
line.setC_Order_ID(getC_Order_ID());
|
||||
//
|
||||
line.setQtyDelivered(Env.ZERO);
|
||||
line.setQtyInvoiced(Env.ZERO);
|
||||
line.setQtyReserved(Env.ZERO);
|
||||
line.setDateDelivered(null);
|
||||
line.setDateInvoiced(null);
|
||||
//
|
||||
line.setOrder(this);
|
||||
line.set_ValueNoCheck ("C_OrderLine_ID", I_ZERO); // new
|
||||
// References
|
||||
|
@ -524,12 +531,7 @@ public class MOrder extends X_C_Order implements DocAction
|
|||
line.setRef_OrderLine_ID(fromLines[i].getC_OrderLine_ID());
|
||||
else
|
||||
line.setRef_OrderLine_ID(0);
|
||||
//
|
||||
line.setQtyDelivered(Env.ZERO);
|
||||
line.setQtyInvoiced(Env.ZERO);
|
||||
line.setQtyReserved(Env.ZERO);
|
||||
line.setDateDelivered(null);
|
||||
line.setDateInvoiced(null);
|
||||
|
||||
// don't copy linked lines
|
||||
line.setLink_OrderLine_ID(0);
|
||||
// Tax
|
||||
|
|
Loading…
Reference in New Issue