details:   https://code.openbravo.com/erp/devel/pi/rev/b9e9226226ff
changeset: 28097:b9e9226226ff
user:      Asier Lostalé <asier.lostale <at> openbravo.com>
date:      Wed Dec 09 15:52:19 2015 +0100
summary:   related to issue 31667: incorrect about message for unlimited POS 
licenses

  Unlimited POS licenses displayed incorrectly POS limitations: it showed -1 
were
  it should be "unlimited".

  This was caused by incorrect Long comparsion.

  Fixed by using Long.equals instead of == operator.

diffstat:

 src/org/openbravo/erpCommon/obps/ActivationKey.java |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 9a9e6209c555 -r b9e9226226ff 
src/org/openbravo/erpCommon/obps/ActivationKey.java
--- a/src/org/openbravo/erpCommon/obps/ActivationKey.java       Fri Dec 04 
14:56:47 2015 +0000
+++ b/src/org/openbravo/erpCommon/obps/ActivationKey.java       Wed Dec 09 
15:52:19 2015 +0100
@@ -1227,9 +1227,9 @@
 
   /** Returns a message for POS Terminals limitations */
   public String getPOSTerminalsExplanation() {
-    if (posTerminals == 0) {
+    if (posTerminals == null || posTerminals.equals(0L)) {
       return OBMessageUtils.messageBD("OPSNone");
-    } else if (posTerminals == NO_LIMIT) {
+    } else if (posTerminals.equals(NO_LIMIT)) {
       return OBMessageUtils.messageBD("OPSWSUnlimited");
     } else {
       return posTerminals.toString();

------------------------------------------------------------------------------
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to