details:   https://code.openbravo.com/erp/devel/pi/rev/c655a9a77fab
changeset: 31763:c655a9a77fab
user:      Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
date:      Thu Mar 30 14:00:53 2017 +0200
summary:   Fixes issue 35054: Improve APRM_CreditWithNegativeAmt message

It is not possible to pay a negative invoice using credit.
Improve APRM_CreditWithNegativeAmt error message to inform about this 
impediment:
"It is not possible to use credit in negative payments. Please, unselect credit 
records."

diffstat:

 modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml 
|  2 +-
 src/org/openbravo/erpCommon/ad_actionButton/CreditPaymentGrid.html             
|  4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r 7a02fed0461a -r c655a9a77fab 
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml
--- 
a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml
    Thu Mar 30 11:47:35 2017 +0200
+++ 
b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml
    Thu Mar 30 14:00:53 2017 +0200
@@ -679,7 +679,7 @@
 <!--712C841E501642B881A998CCAC13E420-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
 <!--712C841E501642B881A998CCAC13E420-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
 <!--712C841E501642B881A998CCAC13E420-->  
<VALUE><![CDATA[APRM_CreditWithNegativeAmt]]></VALUE>
-<!--712C841E501642B881A998CCAC13E420-->  <MSGTEXT><![CDATA[It is not necessary 
to use credit for this payment: Actual Payment is greater than Expected 
Payment.]]></MSGTEXT>
+<!--712C841E501642B881A998CCAC13E420-->  <MSGTEXT><![CDATA[It is not possible 
to use credit in negative payments. Please, unselect credit 
records.]]></MSGTEXT>
 <!--712C841E501642B881A998CCAC13E420-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
 <!--712C841E501642B881A998CCAC13E420-->  
<AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
 <!--712C841E501642B881A998CCAC13E420-->  
<ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
diff -r 7a02fed0461a -r c655a9a77fab 
src/org/openbravo/erpCommon/ad_actionButton/CreditPaymentGrid.html
--- a/src/org/openbravo/erpCommon/ad_actionButton/CreditPaymentGrid.html        
Thu Mar 30 11:47:35 2017 +0200
+++ b/src/org/openbravo/erpCommon/ad_actionButton/CreditPaymentGrid.html        
Thu Mar 30 14:00:53 2017 +0200
@@ -11,7 +11,7 @@
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SLU 
-* All portions are Copyright (C) 2011-2012 Openbravo SLU 
+* All portions are Copyright (C) 2011-2017 Openbravo SLU 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
@@ -98,7 +98,7 @@
       var invoiceAmt = frm.inpInvoiceGrossAmt.value;      
       if ( compare(expectedAmt, '>', invoiceAmt) ) {
         setWindowElementFocus(frm.inpExpectedPayment);
-        showJSMessage('APRM_JSMOREAMOUTALLOCATED');
+        showJSMessage('APRM_CreditWithNegativeAmt');
         return false;
       }
       

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to