All AJU Document Excel use String for Numeric

--HG--
branch : EDII
This commit is contained in:
hodianto 2018-12-18 00:26:45 +07:00
parent f82e9ef7e2
commit d8280a83d5
2 changed files with 16 additions and 16 deletions

View File

@ -185,7 +185,7 @@ public class MID_UploadPEB extends SvrProcess{
oLine.setC_UOM_ID(C_UOM_ID);
oLine.setQty(rsDtl.getBigDecimal("JMSATUAN"));
oLine.setPriceList(rsDtl.getBigDecimal("FOBPERBRG"));
oLine.setPriceActual(rsDtl.getBigDecimal("FOBPERBRG"));
oLine.setPrice(rsDtl.getBigDecimal("FOBPERBRG"));
oLine.saveEx();
}
@ -230,20 +230,20 @@ public class MID_UploadPEB extends SvrProcess{
if(aJU_DocType_Value.equals("41")){
Qty = new BigDecimal(rowBarang.getCell(16).getNumericCellValue());
PriceList = new BigDecimal(rowBarang.getCell(29).getNumericCellValue());
Qty = new BigDecimal(rowBarang.getCell(16).getStringCellValue());
PriceList = new BigDecimal(rowBarang.getCell(29).getStringCellValue());
PriceActual = PriceList;
}else{
Qty = new BigDecimal(rowBarang.getCell(8).getNumericCellValue());
PriceList = new BigDecimal(rowBarang.getCell(3).getNumericCellValue());
Qty = new BigDecimal(rowBarang.getCell(8).getStringCellValue());
PriceList = new BigDecimal(rowBarang.getCell(3).getStringCellValue());
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
PriceActual = PriceList;
}
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);

View File

@ -145,22 +145,22 @@ public class MID_UploadTPB extends SvrProcess{
if(aJU_DocType_Value.equals("23")){
Qty = new BigDecimal(rowBarang.getCell(16).getNumericCellValue());
PriceList = new BigDecimal(rowBarang.getCell(3).getNumericCellValue());
Discount = new BigDecimal(rowBarang.getCell(5).getNumericCellValue());
Qty = new BigDecimal(rowBarang.getCell(16).getStringCellValue());
PriceList = new BigDecimal(rowBarang.getCell(3).getStringCellValue());
Discount = new BigDecimal(rowBarang.getCell(5).getStringCellValue());
PriceActual = PriceList.subtract(Discount.divide(Env.ONEHUNDRED, 2,BigDecimal.ROUND_DOWN).multiply(PriceList));
}else if (aJU_DocType_Value.equals("40")){
Qty = new BigDecimal(rowBarang.getCell(32).getNumericCellValue());
PriceList = new BigDecimal(rowBarang.getCell(29).getNumericCellValue());
Qty = new BigDecimal(rowBarang.getCell(32).getStringCellValue());
PriceList = new BigDecimal(rowBarang.getCell(29).getStringCellValue());
PriceActual = PriceList;
}else{
Qty = new BigDecimal(rowBarang.getCell(8).getNumericCellValue());
PriceList = new BigDecimal(rowBarang.getCell(3).getNumericCellValue());
PriceActual = new BigDecimal(rowBarang.getCell(5).getNumericCellValue());
Qty = new BigDecimal(rowBarang.getCell(8).getStringCellValue());
PriceList = new BigDecimal(rowBarang.getCell(3).getStringCellValue());
PriceActual = new BigDecimal(rowBarang.getCell(5).getStringCellValue());
}
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);