Fixes bug 19747: When pressing several times 'process payment' button, payment's header is duplicated
authorEduardo Argal Guibert <eduardo.argal@openbravo.com>
Tue, 14 Feb 2012 12:24:40 +0100
changeset 15488 58391a9784bb
parent 15487 f663c413f0b0
child 15489 d960e016aae1
Fixes bug 19747: When pressing several times 'process payment' button, payment's header is duplicated
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java	Wed Feb 01 12:25:42 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java	Tue Feb 14 12:24:40 2012 +0100
@@ -249,6 +249,7 @@
           }
         }
       } catch (Exception ex) {
+        OBDal.getInstance().rollbackAndClose();
         message = Utility.translateError(this, vars, vars.getLanguage(), ex.getMessage());
         log4j.error(ex);
         bdErrorGeneralPopUp(request, response, "Error", message.getMessage());