details: https://code.openbravo.com/erp/devel/pi/rev/ca669ba7269e
changeset: 24041:ca669ba7269e
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Tue Jul 15 16:25:55 2014 +0200
summary: Related to issue 19728: Do more JS code formatting
diffstat:
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
| 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (19 lines):
diff -r fae30caac4cc -r ca669ba7269e
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
---
a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
Tue Jul 15 16:23:43 2014 +0200
+++
b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
Tue Jul 15 16:25:55 2014 +0200
@@ -767,11 +767,11 @@
return false;
}
//If Actual Payment amount is negative, it is not necessary to use credit.
- if ((total.compareTo(BigDecimal.prototype.ZERO) < 0) &&
(creditTotalItem.signum() !== 0)){
- view.messageBar.setMessage(isc.OBMessageBar.TYPE_ERROR, null,
OB.I18N.getLabel('APRM_CreditWithNegativeAmt'));
- return false;
+ if ((total.compareTo(BigDecimal.prototype.ZERO) < 0) &&
(creditTotalItem.signum() !== 0)) {
+ view.messageBar.setMessage(isc.OBMessageBar.TYPE_ERROR, null,
OB.I18N.getLabel('APRM_CreditWithNegativeAmt'));
+ return false;
}
-
+
if (actualPayment.compareTo(total) > 0 &&
totalOustandingAmount.compareTo(amountInvOrds.add(totalWriteOffAmount)) > 0) {
// Not all the payment amount has been allocated
view.messageBar.setMessage(isc.OBMessageBar.TYPE_ERROR, null,
OB.I18N.getLabel('APRM_JSNOTALLAMOUTALLOCATED'));
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits