parent
dcd3788385
commit
f1e379c21e
|
|
@ -114,8 +114,8 @@ public class MID_ProcessUnrealizedGainLoss extends SvrProcess{
|
|||
}
|
||||
}
|
||||
|
||||
unRateLine.setGL_JournalLineCr_ID(crJournal.get_ID());
|
||||
unRateLine.setGL_JournalLineDr_ID(drJournal.get_ID());
|
||||
unRateLine.setGL_JournalLineCr_ID(crJournal.getGL_JournalLine_ID());
|
||||
unRateLine.setGL_JournalLineDr_ID(drJournal.getGL_JournalLine_ID());
|
||||
unRateLine.saveEx();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -49,9 +49,9 @@ public class MID_UploadPEB extends SvrProcess{
|
|||
protected String doIt() throws Exception {
|
||||
File TPB = new File(p_File);
|
||||
int formatIndex = TPB.getName().lastIndexOf(".");
|
||||
|
||||
if(TPB.getName().substring(formatIndex).equalsIgnoreCase("xls") ||
|
||||
TPB.getName().substring(formatIndex).equalsIgnoreCase("xls")){
|
||||
String format = TPB.getName().substring(formatIndex-1);
|
||||
if(TPB.getName().substring(formatIndex+1).equalsIgnoreCase("xlsx") ||
|
||||
TPB.getName().substring(formatIndex+1).equalsIgnoreCase("xls")){
|
||||
readExcel(TPB);
|
||||
}else{
|
||||
readAccess(TPB);
|
||||
|
|
@ -76,7 +76,7 @@ public class MID_UploadPEB extends SvrProcess{
|
|||
MOrder order = new MOrder(getCtx(), 0, get_TrxName());
|
||||
order.setAD_Org_ID(Env.getContextAsInt(getCtx(), "#AD_Org_ID"));
|
||||
order.set_ValueNoCheck("RegisterNo", row.getCell(103).getStringCellValue());
|
||||
order.setIsSOTrx(false);
|
||||
order.setIsSOTrx(true);
|
||||
SimpleDateFormat dateFormat = new SimpleDateFormat("dd MMM yyyy");
|
||||
Date parsedDate = dateFormat.parse(row.getCell(117).getStringCellValue());
|
||||
Timestamp registerDate = new Timestamp(parsedDate.getTime());
|
||||
|
|
@ -108,7 +108,7 @@ public class MID_UploadPEB extends SvrProcess{
|
|||
if(AJU_DocType_Value.equals("41"))
|
||||
Barang = workbook.getSheet("Barang");
|
||||
else
|
||||
Barang = workbook.getSheet("Bahan Baku");
|
||||
Barang = workbook.getSheet("BahanBaku");
|
||||
|
||||
Iterator<Row> rowsBarang = Barang.rowIterator();
|
||||
int rowBarangNum = 0;
|
||||
|
|
@ -157,7 +157,7 @@ public class MID_UploadPEB extends SvrProcess{
|
|||
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(false);
|
||||
order.setIsSOTrx(true);
|
||||
order.set_ValueNoCheck("RegisterDate", rs.getString("TGDAFT"));
|
||||
order.set_ValueNoCheck("NoAju1", no_aju);
|
||||
order.setC_BPartner_ID(C_BPartner_ID);
|
||||
|
|
|
|||
Loading…
Reference in New Issue