Fixes issue 21617: Add Payment from Match Transaction,
authorIoritz Cia <ioritz.cia@openbravo.com>
Fri, 14 Sep 2012 12:45:05 +0200
changeset 17962 ce2509bd136d
parent 17961 df5204939921
child 17963 35a4bff5296e
Fixes issue 21617: Add Payment from Match Transaction,
Business Partner ID appears instead of the name.
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.java	Fri Sep 14 12:17:33 2012 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromTransaction.java	Fri Sep 14 12:45:05 2012 +0200
@@ -384,7 +384,7 @@
             BusinessPartner.class);
         obcBP.add(Restrictions.eq(BusinessPartner.PROPERTY_NAME, bsline.getBpartnername()));
         if (obcBP.list() != null && obcBP.list().size() > 0) {
-          xmlDocument.setParameter("businessPartner", obcBP.list().get(0).getId());
+          xmlDocument.setParameter("businessPartner", obcBP.list().get(0).getIdentifier());
           defaultPaymentMethod = (obcBP.list().get(0).getPaymentMethod() != null) ? obcBP.list()
               .get(0).getPaymentMethod().getId() : "";
         }