fixed ob-aprm-utilities.js
authorDavid Alsasua <david.alsasua@openbravo.com>
Sun, 12 Feb 2012 09:39:31 +0100
changeset 15473 ceb6c0cc3d11
parent 15472 0d5c7c2a2352
child 15474 aca3e6915611
fixed ob-aprm-utilities.js
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js
--- a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js	Sun Feb 12 08:30:32 2012 +0100
+++ b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-utilities.js	Sun Feb 12 09:39:31 2012 +0100
@@ -51,10 +51,10 @@
       totalExpected = new BigDecimal("0"),
       totalReceived = new BigDecimal("0"),
       totalOutstanding = new BigDecimal("0"),
-      isNumber = isc.isA.Number
+      isNumber = isc.isA.Number,
       invoiceOutstanding = new BigDecimal(String(item.grid.view.parentWindow.views[0].getParentRecord().outstandingAmount));
 
-  if (new BigDecimal(String(value)).compareTo(new BigDecimal("0")) != 0 && (new BigDecimal(String(value)).compareTo(new BigDecimal("0")) != invoiceOutstanding.compareTo(new BigDecimal("0")))) {
+  if (new BigDecimal(String(value)).compareTo(new BigDecimal("0")) !== 0 && (new BigDecimal(String(value)).compareTo(new BigDecimal("0")) !== invoiceOutstanding.compareTo(new BigDecimal("0")))) {
 	  if (!OB.APRM.validateMPPUserWarnedSign) {
 		  OB.APRM.validateMPPUserWarnedSign = true;
 		  isc.warn(OB.I18N.getLabel('APRM_DifferentSignError'));
@@ -132,4 +132,4 @@
     return false;
   }
   return true;
-};
\ No newline at end of file
+};