IDEMPIERE-4698 Load/Import Bank Statement issues (#573)
This commit is contained in:
parent
c159ce5325
commit
79a3cd8c52
|
@ -101,8 +101,8 @@ public class ImportBankStatement extends SvrProcess
|
|||
|
||||
// Set Client, Org, IsActive, Created/Updated
|
||||
sql = new StringBuilder ("UPDATE I_BankStatement ")
|
||||
.append("SET AD_Client_ID = COALESCE (AD_Client_ID,").append (p_AD_Client_ID).append ("),")
|
||||
.append(" AD_Org_ID = COALESCE (AD_Org_ID,").append (p_AD_Org_ID).append ("),");
|
||||
.append("SET AD_Client_ID = CASE WHEN COALESCE(AD_Client_ID,0) = 0 THEN ").append (p_AD_Client_ID).append (" ELSE AD_Client_ID END,")
|
||||
.append(" AD_Org_ID = CASE WHEN COALESCE(AD_Org_ID,0) = 0 THEN ").append (p_AD_Org_ID).append (" ELSE AD_Org_ID END,");
|
||||
sql.append(" IsActive = COALESCE (IsActive, 'Y'),")
|
||||
.append(" Created = COALESCE (Created, getDate()),")
|
||||
.append(" CreatedBy = COALESCE (CreatedBy, 0),")
|
||||
|
|
|
@ -102,8 +102,10 @@ public class LoadBankStatement extends SvrProcess
|
|||
log.log(Level.SEVERE, "Invalid Loader");
|
||||
|
||||
// Start loading bank statement lines
|
||||
else if (!m_controller.loadLines())
|
||||
else if (!m_controller.loadLines()) {
|
||||
message += m_controller.getErrorMessage() + " - " + m_controller.getErrorDescription();
|
||||
log.log(Level.SEVERE, m_controller.getErrorMessage() + " - " + m_controller.getErrorDescription());
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
|
|
|
@ -257,7 +257,6 @@ import org.compiere.util.Util;
|
|||
imp.setEftTrxID(m_loader.getTrxID());
|
||||
if (log.isLoggable(Level.CONFIG))log.config( "MBankStatementLoader.importLine Statement Line Date=" + m_loader.getStatementLineDate());
|
||||
imp.setStatementLineDate(m_loader.getStatementLineDate());
|
||||
imp.setStatementLineDate(m_loader.getStatementLineDate());
|
||||
imp.setEftStatementLineDate(m_loader.getStatementLineDate());
|
||||
if (log.isLoggable(Level.CONFIG))log.config( "MBankStatementLoader.importLine Valuta Date=" + m_loader.getValutaDate());
|
||||
imp.setValutaDate(m_loader.getValutaDate());
|
||||
|
|
Loading…
Reference in New Issue