AJU Document Type Set, Price for PEB
--HG-- branch : EDII
This commit is contained in:
parent
9d0f016566
commit
83c647edcc
|
|
@ -153,13 +153,14 @@ public class MID_UploadPEB extends SvrProcess{
|
|||
if (C_BPartner_ID < 0) {msg += "- BPartner " + rs.getString("NAMABELI") + " tidak ada!\n";}
|
||||
if (C_Currency_ID < 0) {msg += "- Currency " + rs.getString("KDVAL") + " tidak ada!\n";}
|
||||
if (msg != "") throw new AdempiereException(msg);
|
||||
|
||||
int MID_AJUDocumentType_ID = DB.getSQLValue(get_TrxName(), "SELECT MID_AJUDocumentType_ID FROM MID_AJUDocumentType WHERE Value =? AND AD_Client_ID =?", new Object[] { "30", getAD_Client_ID() });
|
||||
String no_aju = rs.getString("CAR");
|
||||
|
||||
MOrder order = new MOrder(getCtx(), 0, get_TrxName());
|
||||
order.setAD_Org_ID(Env.getContextAsInt(getCtx(), "#AD_Org_ID"));
|
||||
order.set_ValueNoCheck("RegisterNo", rs.getString("NODAFT"));
|
||||
order.setIsSOTrx(true);
|
||||
order.set_ValueNoCheck("MID_AJUDocumentType_ID", MID_AJUDocumentType_ID);
|
||||
order.set_ValueNoCheck("RegisterDate", rs.getTimestamp("TGDAFT"));
|
||||
order.set_ValueNoCheck("NoAju1", no_aju);
|
||||
order.setC_BPartner_ID(C_BPartner_ID);
|
||||
|
|
@ -184,8 +185,9 @@ public class MID_UploadPEB extends SvrProcess{
|
|||
oLine.setM_Product_ID(M_Product_ID);
|
||||
oLine.setC_UOM_ID(C_UOM_ID);
|
||||
oLine.setQty(rsDtl.getBigDecimal("JMSATUAN"));
|
||||
oLine.setPriceList(rsDtl.getBigDecimal("FOBPERBRG"));
|
||||
oLine.setPrice(rsDtl.getBigDecimal("FOBPERBRG"));
|
||||
oLine.setPriceEntered(rsDtl.getBigDecimal("FOBPERBRG"));
|
||||
oLine.setPriceActual(rsDtl.getBigDecimal("FOBPERSAT"));
|
||||
oLine.setPriceList(rsDtl.getBigDecimal("FOBPERSAT"));
|
||||
oLine.saveEx();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue