details:   https://code.openbravo.com/erp/devel/pi/rev/97d8cf3e7d76
changeset: 22835:97d8cf3e7d76
user:      Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at> 
openbravo.com>
date:      Mon Apr 07 15:11:15 2014 +0530
summary:   Related to 25483: Code Reformatting

diffstat:

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

diffs (15 lines):

diff -r e3ae82ec9ee3 -r 97d8cf3e7d76 
src/org/openbravo/erpCommon/ad_callouts/SE_PaymentMethod_FinAccount.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SE_PaymentMethod_FinAccount.java  
Mon Apr 07 00:47:11 2014 +0530
+++ b/src/org/openbravo/erpCommon/ad_callouts/SE_PaymentMethod_FinAccount.java  
Mon Apr 07 15:11:15 2014 +0530
@@ -65,9 +65,8 @@
       obc.add(Restrictions.in("organization.id", OBContext.getOBContext()
           .getOrganizationStructureProvider().getNaturalTree(strOrgId)));
 
-      if (obc.count() > 0) {
-        FinAccPaymentMethod selectedAccPaymentMethod = obc.list().get(0);
-
+      FinAccPaymentMethod selectedAccPaymentMethod = (FinAccPaymentMethod) 
obc.uniqueResult();
+      if (selectedAccPaymentMethod != null) {
         if (isPaymentOut) {
           isMultiCurrencyEnabled = selectedAccPaymentMethod.isPayoutAllow()
               && selectedAccPaymentMethod.isPayoutIsMulticurrency();

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees_APR
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to