# HG changeset patch
# User Víctor Martínez Romanos <victor.martinez@openbravo.com>
# Date 1455644245 -3600
#      Tue Feb 16 18:37:25 2016 +0100
# Branch 16Q2
# Node ID f76791c88d48152c29f37a8eb890bbd008d3c906
# Parent  a2cce8a0ec6e7727078c5d5be18e1f626fdc58c1
Related to issue 32044: Support for paymentId parameter

diff --git a/src/org/openbravo/module/remittance/process/REM_RemittanceProcess.java b/src/org/openbravo/module/remittance/process/REM_RemittanceProcess.java
--- a/src/org/openbravo/module/remittance/process/REM_RemittanceProcess.java
+++ b/src/org/openbravo/module/remittance/process/REM_RemittanceProcess.java
@@ -549,7 +549,7 @@
             payment = FIN_AddPayment.savePayment(null, isReceipt, docType, strPaymentDocumentNo,
                 currentbp, pm, remittance.getFinancialAccount(), currentPaymentTotal.toString(),
                 expectedDate, line.getOrganization(), "", psdList, hm, false, false,
-                currentCurrency, txnConvRate, txnConvAmount, false);
+                currentCurrency, txnConvRate, txnConvAmount, false, null);
           } else {
             payment = FIN_AddPayment.savePayment(null, isReceipt, docType, strPaymentDocumentNo,
                 currentbp, pm, remittance.getFinancialAccount(), currentPaymentTotal.toString(),
@@ -727,7 +727,7 @@
           payment = FIN_AddPayment.savePayment(null, isReceipt, docType, strPaymentDocumentNo, bp,
               pm, remittance.getFinancialAccount(), line.getAmount().toString(), expectedDate,
               line.getOrganization(), "", psdList, hm, false, false, currency, txnConvRate,
-              txnConvAmount, false);
+              txnConvAmount, false, null);
         } else {
           payment = FIN_AddPayment.savePayment(null, isReceipt, docType, strPaymentDocumentNo, bp,
               pm, remittance.getFinancialAccount(), line.getAmount().toString(), expectedDate,
@@ -916,7 +916,7 @@
       payment = FIN_AddPayment.savePayment(null, isReceipt, docType, strPaymentDocumentNo, null,
           remittance.getRemittanceType().getPaymentMethod(), remittance.getFinancialAccount(),
           amount.toString(), remittance.getDueDate(), remittance.getOrganization(), "", psdList,
-          hm, false, false, currency, txnConvRate, txnConvAmount, false);
+          hm, false, false, currency, txnConvRate, txnConvAmount, false, null);
     } else {
       payment = FIN_AddPayment.savePayment(null, isReceipt, docType, strPaymentDocumentNo, null,
           remittance.getRemittanceType().getPaymentMethod(), remittance.getFinancialAccount(),
