PEB Check Currency

--HG--
branch : EDII
This commit is contained in:
hodianto 2018-12-15 20:11:51 +07:00
parent 728199c443
commit 96ecf80f6f
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class MID_UploadPEB 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());