Create From Requisition Set QTY and Price
--HG-- branch : EDII
This commit is contained in:
parent
d8280a83d5
commit
bedc29667d
|
|
@ -356,7 +356,7 @@ public class MID_CreateFromOrder extends CreateFrom {
|
|||
if (reqLine.getC_UOM_ID()>0 && reqLine.getM_Product_ID() > 0) {
|
||||
if(reqLine.getC_UOM_ID()!=reqLine.getM_Product().getC_UOM_ID())
|
||||
// qtyOrdered = MUOMConversion.convertProductTo (Env.getCtx(), reqLine.getM_Product_ID(), reqLine.getC_UOM_ID(), qty);
|
||||
qtyOrdered = MUOMConversion.convertProductTo(Env.getCtx(), reqLine.getM_Product_ID(), reqLine.getC_UOM_ID(), qty);
|
||||
qtyOrdered = MUOMConversion.convertProductFrom(Env.getCtx(), reqLine.getM_Product_ID(), reqLine.getC_UOM_ID(), qty);
|
||||
if (qtyOrdered == null)
|
||||
qtyOrdered = Env.ZERO;
|
||||
}
|
||||
|
|
@ -385,6 +385,8 @@ public class MID_CreateFromOrder extends CreateFrom {
|
|||
orderLine.setPriceList(pricing.getPriceList());
|
||||
orderLine.setPriceLimit(pricing.getPriceLimit());
|
||||
|
||||
|
||||
|
||||
//@Hodianto Change Default Price List
|
||||
MPriceList priceList = new MPriceList(Env.getCtx(), M_PriceList_ID, null);
|
||||
if(priceList.get_ValueAsBoolean("isLastPriceUsed")){
|
||||
|
|
@ -429,10 +431,12 @@ public class MID_CreateFromOrder extends CreateFrom {
|
|||
int a = reqLine.getC_UOM_ID();
|
||||
orderLine.setC_UOM_ID(reqLine.getC_UOM_ID());
|
||||
// orderLine.setQtyEntered(qty);
|
||||
orderLine.setQtyEntered(qtyOrdered);
|
||||
orderLine.setQtyEntered(Qty);
|
||||
//orderLine.setC_Tax_ID(order.getC_Tax_ID());
|
||||
orderLine.setQtyOrdered(qtyOrdered);
|
||||
// orderLine.setLine(reqLine.getLine());
|
||||
orderLine.setPriceEntered(reqLine.getPriceActual());
|
||||
orderLine.setDiscount(Env.ZERO);
|
||||
|
||||
//Add by @solrizal increment LIne Number by 10
|
||||
orderLine.set_ValueOfColumn("PriceRequisition", reqLine.getPriceActual());
|
||||
|
|
|
|||
Loading…
Reference in New Issue