details:   /erp/devel/pi/rev/43abe01c907a
changeset: 8498:43abe01c907a
user:      Anandan Narasimachari Monnin <anandan.monnin <at> openbravo.com>
date:      Tue Oct 05 19:23:09 2010 +0530
summary:   One scenario was left for the defect 14594 now its fixed

diffstat:

 src/org/openbravo/erpCommon/ad_callouts/SE_PaymentMethod_FinAccount.java |  12 
+++++----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (32 lines):

diff -r 0a5d7fe7609e -r 43abe01c907a 
src/org/openbravo/erpCommon/ad_callouts/SE_PaymentMethod_FinAccount.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SE_PaymentMethod_FinAccount.java  
Tue Oct 05 13:23:49 2010 +0530
+++ b/src/org/openbravo/erpCommon/ad_callouts/SE_PaymentMethod_FinAccount.java  
Tue Oct 05 19:23:09 2010 +0530
@@ -52,6 +52,8 @@
     String srtSelectedFinancialAccount = info.getStringParameter(
         isVendorTab ? "inppoFinancialAccountId" : "inpfinFinancialAccountId", 
IsIDFilter.instance);
 
+    boolean isSelected = true;
+
     // No Payment Method selected
     if (srtPaymentMethodId.isEmpty() && srtPOPaymentMethodId.isEmpty()) {
       OBCriteria<FIN_FinancialAccount> obc = 
OBDal.getInstance().createCriteria(
@@ -70,14 +72,14 @@
 
       for (FinAccPaymentMethod accPm : obc.list()) {
         if (srtSelectedFinancialAccount.equals(accPm.getAccount().getId())) {
-          info
-              .addSelectResult(accPm.getAccount().getId(), 
accPm.getAccount().getIdentifier(), true);
+          isSelected = true;
         } else if (srtSelectedFinancialAccount.isEmpty()) {
           srtSelectedFinancialAccount = accPm.getAccount().getIdentifier();
-          info.addSelectResult(accPm.getAccount().getId(), 
srtSelectedFinancialAccount, true);
-        } else {
-          info.addSelectResult(accPm.getAccount().getId(), 
accPm.getAccount().getIdentifier());
+          isSelected = true;
         }
+        info.addSelectResult(accPm.getAccount().getId(), 
accPm.getAccount().getIdentifier(),
+            isSelected);
+        isSelected = false;
       }
     }
     info.endSelect();

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to