issue 22663: Not possible to import statement with "older" date
authorJavier Etxarri <javier.echarri@openbravo.com>
Tue, 29 Jan 2013 17:18:03 +0100
changeset 19501 81295cf8b1e8
parent 19500 ec8b28e3c0c0
child 19502 51b18ffbb897
issue 22663: Not possible to import statement with "older" date
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_BankStatementProcess.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_BankStatementProcess.java	Tue Jan 29 16:49:25 2013 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/process/FIN_BankStatementProcess.java	Tue Jan 29 17:18:03 2013 +0100
@@ -71,7 +71,7 @@
           }
         }
 
-        if (msg.getType() == null && !msg.getType().toLowerCase().equals("warning")) {
+        if (msg.getType() != null && !msg.getType().toLowerCase().equals("warning")) {
           // Success
           bankStatement.setProcessed(true);
           bankStatement.setAPRMProcessBankStatement("R");