details:   https://code.openbravo.com/erp/devel/pi/rev/05e9f0a59f54
changeset: 18542:05e9f0a59f54
user:      David Miguelez <david.miguelez <at> openbravo.com>
date:      Wed Nov 14 13:41:33 2012 +0100
summary:   Fixes Issue 22301.

diffstat:

 
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/AcctSchemaEventHandler.java
 |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 299f8fb74b3e -r 05e9f0a59f54 
modules/org.openbravo.client.application/src/org/openbravo/client/application/event/AcctSchemaEventHandler.java
--- 
a/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/AcctSchemaEventHandler.java
   Wed Nov 14 13:52:22 2012 +0100
+++ 
b/modules/org.openbravo.client.application/src/org/openbravo/client/application/event/AcctSchemaEventHandler.java
   Wed Nov 14 13:41:33 2012 +0100
@@ -55,8 +55,7 @@
     return entities;
   }
 
-  public void onUpdate(@Observes
-  EntityUpdateEvent event) {
+  public void onUpdate(@Observes EntityUpdateEvent event) {
     if (!isValidEvent(event)) {
       return;
     }
@@ -198,7 +197,7 @@
     } else if (ACCOUNTTYPE_EXPENSE.equals(accountType) && !expensePositive) {
       return true;
     } else if (ACCOUNTTYPE_REVENUE.equals(accountType) && !revenuePositive) {
-      return true;
+      return false;
     }
     return false;
 

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to