parent
8ea5146e54
commit
2d568de240
|
|
@ -134,9 +134,8 @@ public class MID_UploadPEB extends SvrProcess{
|
|||
|
||||
private void readAccess(File TPB) throws Exception{
|
||||
String msg = "";
|
||||
File f_Access = new File(p_File);
|
||||
Class.forName("net.ucanaccess.jdbc.UcanaccessDriver");
|
||||
String databaseURL = "jdbc:ucanaccess://" + f_Access.getPath() + ";jackcessOpener=andromedia.midsuit.process.CryptCodecOpener";
|
||||
String databaseURL = "jdbc:ucanaccess://" + TPB.getPath() + ";jackcessOpener=andromedia.midsuit.process.CryptCodecOpener";
|
||||
try (Connection conn = DriverManager.getConnection(databaseURL)) {
|
||||
|
||||
String sql = "SELECT * FROM tblPebHdr";
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ public class MID_UploadTPB extends SvrProcess{
|
|||
throw new AdempiereException("Business Partner Not Found "+row.getCell(3).getStringCellValue()+" !!!");
|
||||
|
||||
int C_Currency_ID = DB.getSQLValue(get_TrxName(), "SELECT C_Currency_ID FROM C_Currency WHERE ISO_Code =? ", new Object[] { row.getCell(88).getStringCellValue()});
|
||||
if(C_BPartner_ID <=0)
|
||||
if(C_Currency_ID <=0)
|
||||
throw new AdempiereException("Currency Not Found "+row.getCell(88).getStringCellValue()+" !!!");
|
||||
order.setC_BPartner_ID(C_BPartner_ID);
|
||||
order.setC_BPartner_Location_ID(MBPartnerLocation.getForBPartner(getCtx(), C_BPartner_ID, get_TrxName())[0].getC_BPartner_Location_ID());
|
||||
|
|
|
|||
Loading…
Reference in New Issue