IDEMPIERE-4698 Load/Import Bank Statement issues (#573)

This commit is contained in:
Carlos Ruiz 2021-02-09 20:11:00 +01:00 committed by GitHub
parent c159ce5325
commit 79a3cd8c52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -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),")

View File

@ -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
{

View File

@ -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());