Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008725Openbravo ERPB. User interfacepublic2009-04-16 13:182009-05-12 17:31
networkb 
dbaz 
immediateminoralways
closedfixed 
30
2.40MP3 
2.40MP4 
Core
No
0008725: The error, info, warning, messages printed when a callout is executed are not deleted
When a callout if executed and a message is printed, then in a second execution of the callout the message is not deleted and it should dissapear.
-Go to good shipment window
-Select a partner with not available credit
-A message appears:
     Note: Over Credit Limit
-Select other partner with credit
-The message does not disappear

      if (Value!=null && Value!='') {
      setValues_MessageBox('messageBoxID', "INFO", "", Value);
    }
When the message that is printed is null or "" the message should dissapear.

To get this you have to modify the web/js/utils.js

Modify the function formElementValue(Formulario, ElementName, Value) method

Replace this line
setValues_MessageBox('messageBoxID', "INFO", "", Value);
with the following:
 if (Value!=null && Value!='') {
      setValues_MessageBox('messageBoxID', "INFO", "", Value);
}

and the same with this line:
 setValues_MessageBox('messageBoxID', ElementName, "", Value);

No tags attached.
blocks defect 0008598 closed dbaz The error, info, warning, messages printed when a callout is executed are not deleted 
Issue History
2009-04-22 20:11psarobeTypedefect => backport
2009-04-22 20:11psarobefix_in_branch => 2.40
2009-04-23 09:32rafarodaAssigned Torafaroda => dbaz
2009-04-24 00:10hgbotCheckin
2009-04-24 00:10hgbotNote Added: 0015643
2009-04-24 00:10hgbotStatusscheduled => resolved
2009-04-24 00:10hgbotResolutionopen => fixed
2009-04-24 00:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/c2e10c8041ab7ea09881e56c49303d50b303e326 [^]
2009-05-10 19:37psarobeFixed in Version => 2.40MP4
2009-05-12 17:31plujanStatusresolved => closed

Notes
(0015643)
hgbot   
2009-04-24 00:10   
Repository: erp/stable/2.40
Changeset: c2e10c8041ab7ea09881e56c49303d50b303e326
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Thu Apr 23 23:46:27 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/c2e10c8041ab7ea09881e56c49303d50b303e326 [^]

Fixed bug 8725: Now message box is cleared when there is a change business partner in 'Good Shipments'

---
M src/org/openbravo/erpCommon/ad_callouts/SL_InOut_BPartner.java
M web/js/utils.js
---