details: https://code.openbravo.com/erp/devel/pi/rev/ba500be63eda
changeset: 18063:ba500be63eda
user: David Baz Fayos <david.baz <at> openbravo.com>
date: Thu Sep 27 15:25:56 2012 +0200
summary: Related to issue 19728: Do more JS code formatting
diffstat:
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
| 13 ++++-----
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (23 lines):
diff -r 4b455cfbbff4 -r ba500be63eda
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
---
a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
Tue Sep 25 17:49:31 2012 +0200
+++
b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
Thu Sep 27 15:25:56 2012 +0200
@@ -364,13 +364,12 @@
document.getElementById('paramDifference').innerHTML =
frm.inpDifference.value;
displayLogicElement('sectionDifference', (compare(expected, '!=', total) ||
compareWithSign(amount, '>', total)));
displayLogicElement('sectionDifferenceBox', (compare(expected, '!=', total)
|| (isCreditAllowed && compareWithSign(amount, '>', total))));
- if ((frm.strWriteOffLimit.value === 'Y') && (compare(expected, '!=', total))
&& (frm.strtypewriteoff.value==='A') &&
(compareWithSign((applyFormat((subtract(expected,total))*exchangeRate.value)),
'>',frm.strAmountwriteoff.value))) {
- displayLogicElement('writeofflimit', true);
- displayLogicElement('writeoff', false);
- }
- else {
- displayLogicElement('writeofflimit', false);
- displayLogicElement('writeoff', compare(expected, '!=', total));
+ if ((frm.strWriteOffLimit.value === 'Y') && (compare(expected, '!=', total))
&& (frm.strtypewriteoff.value === 'A') &&
(compareWithSign((applyFormat((subtract(expected, total)) *
exchangeRate.value)), '>', frm.strAmountwriteoff.value))) {
+ displayLogicElement('writeofflimit', true);
+ displayLogicElement('writeoff', false);
+ } else {
+ displayLogicElement('writeofflimit', false);
+ displayLogicElement('writeoff', compare(expected, '!=', total));
}
displayLogicElement('underpayment', compareWithSign(expected, '>', total));
displayLogicElement('credit', isCreditAllowed && compareWithSign(amount,
'>', total));
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits