related to issue 29021, related to issue 29051, related to issue 29052
authorSandra Huguet <sandra.huguet@openbravo.com>
Tue, 24 Feb 2015 18:56:03 +0100
changeset 26068 9b796d39efb6
parent 26067 a169e46939db
child 26069 f24821411d25
related to issue 29021, related to issue 29051, related to issue 29052

improve the error message
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml
modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml	Mon Feb 23 17:47:46 2015 +0100
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml	Tue Feb 24 18:56:03 2015 +0100
@@ -577,6 +577,18 @@
 <!--65FFCFF8C6A64AA3AE3E25AB791E6240-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
 <!--65FFCFF8C6A64AA3AE3E25AB791E6240--></AD_MESSAGE>
 
+<!--673AA094D768424699B01CB934C92466--><AD_MESSAGE>
+<!--673AA094D768424699B01CB934C92466-->  <AD_MESSAGE_ID><![CDATA[673AA094D768424699B01CB934C92466]]></AD_MESSAGE_ID>
+<!--673AA094D768424699B01CB934C92466-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--673AA094D768424699B01CB934C92466-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--673AA094D768424699B01CB934C92466-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--673AA094D768424699B01CB934C92466-->  <VALUE><![CDATA[APRM_GLITEMSDIFFERENTZERO]]></VALUE>
+<!--673AA094D768424699B01CB934C92466-->  <MSGTEXT><![CDATA[Received In or Paid Out amounts should be different to zero in GL Item grid]]></MSGTEXT>
+<!--673AA094D768424699B01CB934C92466-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--673AA094D768424699B01CB934C92466-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--673AA094D768424699B01CB934C92466-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
+<!--673AA094D768424699B01CB934C92466--></AD_MESSAGE>
+
 <!--677879BD3D72467AA2D646765E596E4F--><AD_MESSAGE>
 <!--677879BD3D72467AA2D646765E596E4F-->  <AD_MESSAGE_ID><![CDATA[677879BD3D72467AA2D646765E596E4F]]></AD_MESSAGE_ID>
 <!--677879BD3D72467AA2D646765E596E4F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js	Mon Feb 23 17:47:46 2015 +0100
+++ b/modules/org.openbravo.advpaymentmngt/web/org.openbravo.advpaymentmngt/js/ob-aprm-addPayment.js	Tue Feb 24 18:56:03 2015 +0100
@@ -1092,7 +1092,7 @@
     receivedInAmt = new BigDecimal(String(glitemGrid.getEditedCell(i, receivedInField) || 0));
     paidOutAmt = new BigDecimal(String(glitemGrid.getEditedCell(i, paidOutField) || 0));
     if (receivedInAmt.signum() === 0 && paidOutAmt.signum() === 0) {
-      view.messageBar.setMessage(isc.OBMessageBar.TYPE_ERROR, null, OB.I18N.getLabel('APRM_JSAMOUNTDIFFTOZERO'));
+      view.messageBar.setMessage(isc.OBMessageBar.TYPE_ERROR, null, OB.I18N.getLabel('APRM_GLITEMSDIFFERENTZERO'));
       return false;
     }