diff --git a/org.adempiere.base.process/src/org/compiere/process/BankStatementPayment.java b/org.adempiere.base.process/src/org/compiere/process/BankStatementPayment.java index 1c3107ae2e..dec65b121a 100644 --- a/org.adempiere.base.process/src/org/compiere/process/BankStatementPayment.java +++ b/org.adempiere.base.process/src/org/compiere/process/BankStatementPayment.java @@ -223,7 +223,11 @@ public class BankStatementPayment extends SvrProcess return null; payment.saveEx(); // - payment.processIt(MPayment.DOCACTION_Complete); + if (!payment.processIt(MPayment.DOCACTION_Complete)) { + log.warning("Payment Process Failed: " + payment.getDocumentNo() + " " + payment.getProcessMsg()); + throw new IllegalStateException("Payment Process Failed: " + payment.getDocumentNo() + " " + payment.getProcessMsg()); + + } payment.saveEx(); return payment; } // createPayment