All AJU Document Excel use String for Numeric
--HG-- branch : EDII
This commit is contained in:
parent
f82e9ef7e2
commit
d8280a83d5
|
|
@ -185,7 +185,7 @@ public class MID_UploadPEB extends SvrProcess{
|
||||||
oLine.setC_UOM_ID(C_UOM_ID);
|
oLine.setC_UOM_ID(C_UOM_ID);
|
||||||
oLine.setQty(rsDtl.getBigDecimal("JMSATUAN"));
|
oLine.setQty(rsDtl.getBigDecimal("JMSATUAN"));
|
||||||
oLine.setPriceList(rsDtl.getBigDecimal("FOBPERBRG"));
|
oLine.setPriceList(rsDtl.getBigDecimal("FOBPERBRG"));
|
||||||
oLine.setPriceActual(rsDtl.getBigDecimal("FOBPERBRG"));
|
oLine.setPrice(rsDtl.getBigDecimal("FOBPERBRG"));
|
||||||
oLine.saveEx();
|
oLine.saveEx();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -230,20 +230,20 @@ public class MID_UploadPEB extends SvrProcess{
|
||||||
|
|
||||||
|
|
||||||
if(aJU_DocType_Value.equals("41")){
|
if(aJU_DocType_Value.equals("41")){
|
||||||
Qty = new BigDecimal(rowBarang.getCell(16).getNumericCellValue());
|
Qty = new BigDecimal(rowBarang.getCell(16).getStringCellValue());
|
||||||
PriceList = new BigDecimal(rowBarang.getCell(29).getNumericCellValue());
|
PriceList = new BigDecimal(rowBarang.getCell(29).getStringCellValue());
|
||||||
PriceActual = PriceList;
|
PriceActual = PriceList;
|
||||||
}else{
|
}else{
|
||||||
Qty = new BigDecimal(rowBarang.getCell(8).getNumericCellValue());
|
Qty = new BigDecimal(rowBarang.getCell(8).getStringCellValue());
|
||||||
PriceList = new BigDecimal(rowBarang.getCell(3).getNumericCellValue());
|
PriceList = new BigDecimal(rowBarang.getCell(3).getStringCellValue());
|
||||||
if(aJU_DocType_Value.equals("25") || aJU_DocType_Value.equals("27"))
|
if(aJU_DocType_Value.equals("25") || aJU_DocType_Value.equals("27"))
|
||||||
PriceActual = new BigDecimal(rowBarang.getCell(5).getNumericCellValue());
|
PriceActual = new BigDecimal(rowBarang.getCell(5).getStringCellValue());
|
||||||
else
|
else
|
||||||
PriceActual = PriceList;
|
PriceActual = PriceList;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(aJU_DocType_Value.equals("27")){
|
if(aJU_DocType_Value.equals("27")){
|
||||||
Discount = new BigDecimal(rowHeader.getCell(22).getNumericCellValue());
|
Discount = new BigDecimal(rowHeader.getCell(22).getStringCellValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
retValue.setM_Product_ID(M_Product_ID);
|
retValue.setM_Product_ID(M_Product_ID);
|
||||||
|
|
|
||||||
|
|
@ -145,22 +145,22 @@ public class MID_UploadTPB extends SvrProcess{
|
||||||
|
|
||||||
|
|
||||||
if(aJU_DocType_Value.equals("23")){
|
if(aJU_DocType_Value.equals("23")){
|
||||||
Qty = new BigDecimal(rowBarang.getCell(16).getNumericCellValue());
|
Qty = new BigDecimal(rowBarang.getCell(16).getStringCellValue());
|
||||||
PriceList = new BigDecimal(rowBarang.getCell(3).getNumericCellValue());
|
PriceList = new BigDecimal(rowBarang.getCell(3).getStringCellValue());
|
||||||
Discount = new BigDecimal(rowBarang.getCell(5).getNumericCellValue());
|
Discount = new BigDecimal(rowBarang.getCell(5).getStringCellValue());
|
||||||
PriceActual = PriceList.subtract(Discount.divide(Env.ONEHUNDRED, 2,BigDecimal.ROUND_DOWN).multiply(PriceList));
|
PriceActual = PriceList.subtract(Discount.divide(Env.ONEHUNDRED, 2,BigDecimal.ROUND_DOWN).multiply(PriceList));
|
||||||
}else if (aJU_DocType_Value.equals("40")){
|
}else if (aJU_DocType_Value.equals("40")){
|
||||||
Qty = new BigDecimal(rowBarang.getCell(32).getNumericCellValue());
|
Qty = new BigDecimal(rowBarang.getCell(32).getStringCellValue());
|
||||||
PriceList = new BigDecimal(rowBarang.getCell(29).getNumericCellValue());
|
PriceList = new BigDecimal(rowBarang.getCell(29).getStringCellValue());
|
||||||
PriceActual = PriceList;
|
PriceActual = PriceList;
|
||||||
}else{
|
}else{
|
||||||
Qty = new BigDecimal(rowBarang.getCell(8).getNumericCellValue());
|
Qty = new BigDecimal(rowBarang.getCell(8).getStringCellValue());
|
||||||
PriceList = new BigDecimal(rowBarang.getCell(3).getNumericCellValue());
|
PriceList = new BigDecimal(rowBarang.getCell(3).getStringCellValue());
|
||||||
PriceActual = new BigDecimal(rowBarang.getCell(5).getNumericCellValue());
|
PriceActual = new BigDecimal(rowBarang.getCell(5).getStringCellValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
if(aJU_DocType_Value.equals("27")){
|
if(aJU_DocType_Value.equals("27")){
|
||||||
Discount = new BigDecimal(rowBarang.getCell(22).getNumericCellValue());
|
Discount = new BigDecimal(rowBarang.getCell(22).getStringCellValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
retValue.setM_Product_ID(M_Product_ID);
|
retValue.setM_Product_ID(M_Product_ID);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue