details: https://code.openbravo.com/erp/devel/pi/rev/6a079afab77b
changeset: 13689:6a079afab77b
user: Mikel Irurita <mikel.irurita <at> openbravo.com>
date: Fri Sep 09 13:48:27 2011 +0200
summary: Fixes issue 18432: Not possible to create a payment in/out ONLY with
GL Items and no business partner selected
diffstat:
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
| 12 ++++++---
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 793e9e936326 -r 6a079afab77b
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
---
a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
Fri Sep 09 13:44:09 2011 +0200
+++
b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/FIN_Utilities.js
Fri Sep 09 13:48:27 2011 +0200
@@ -619,9 +619,12 @@
if (!validateSelectedAmounts(chk.value, compare(selectedTotal, '<',
actualPayment), action)) {
return false;
}
- } else if ( !allowNotSelectingPendingPayment || compare(actualPayment,
'==', "0")){
- showJSMessage('APRM_JSNOTLINESELECTED');
- return false;
+ } else {
+ if (!(typeof OB !== 'undefined' && OB.APRM && OB.APRM.HasGLItems) &&
+ (!allowNotSelectingPendingPayment || compare(actualPayment, '==',
"0"))){
+ showJSMessage('APRM_JSNOTLINESELECTED');
+ return false;
+ }
}
} else {
var total = chk.length;
@@ -634,7 +637,8 @@
}
}
}
- if (!isAnyChecked &&
+ if (!(typeof OB !== 'undefined' && OB.APRM && OB.APRM.HasGLItems) &&
+ !isAnyChecked &&
(!allowNotSelectingPendingPayment || compare(actualPayment, '==', "0"))
) {
showJSMessage('APRM_JSNOTLINESELECTED');
------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT
space for its ease of implementation, lower cost, and increased
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits