Fixes issue 24469: Drop down list in 'actions regarding document' is not showing
authorIoritz Cia <ioritz.cia@openbravo.com>
Thu, 01 Aug 2013 10:00:53 +0200
changeset 20831 bde9178f9f82
parent 20830 9fda3a814da5
child 20832 37aeae33b0c0
Fixes issue 24469: Drop down list in 'actions regarding document' is not showing
correct options when processing a payment.
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 Jul 31 20:55:59 2013 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddPaymentFromInvoice.java	Thu Aug 01 10:00:53 2013 +0200
@@ -667,8 +667,8 @@
     }
     String processOprtionsComboHtml = null;
 
-    boolean forcedFinancialAccountTransaction = finAccPaymentMethod.isAutomaticDeposit()
-        || finAccPaymentMethod.isAutomaticWithdrawn();
+    boolean forcedFinancialAccountTransaction = isReceipt ? finAccPaymentMethod
+        .isAutomaticDeposit() : finAccPaymentMethod.isAutomaticWithdrawn();
 
     try {
       ComboTableData comboTableData = new ComboTableData(vars, this, "LIST", "",