Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018960Openbravo ERP08. Project and service managementpublic2011-11-02 17:292011-12-07 11:33
malsasua 
jecharri 
highminoralways
closedunable to reproduce 
20Community Appliance
 
2.50MP37 
Google Chrome
Core
No
0018960: error in log file to create a new line in expense sheet window. Error in SE_Expense_Amount callout
In expense sheet window, to create a new line, in log file is displayed an error:

ERROR org.openbravo.client.application.window.FormInitializationComponent - Couldn't parse callout response. The parsed response was: var calloutName='SE_Expense_Amount';

var respuesta = new Array(new Array("inpexpenseamt", 0.0), new Array("inpconvertedamt", ));
org.mozilla.javascript.EvaluatorException: syntax error (<cmd>#3)
        at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
        at org.mozilla.javascript.DefaultErrorReporter.error(DefaultErrorReporter.java:96)
        at org.mozilla.javascript.Parser.addError(Parser.java:146)
        at org.mozilla.javascript.Parser.reportError(Parser.java:160)
        at org.mozilla.javascript.Parser.primaryExpr(Parser.java:2469)
        at org.mozilla.javascript.Parser.memberExpr(Parser.java:1955)
. activate the instance
. go to expense sheet window
. create new line
change the line 132 (src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java):
 resultado.append(", new Array(\"inpconvertedamt\", "
        + (convAmount.compareTo(BigDecimal.ZERO) == 0 ? "" : convAmount.toPlainString()) + ")");

to
    resultado.append(", new Array(\"inpconvertedamt\", "
        + (convAmount.compareTo(BigDecimal.ZERO) == 0 ? "\"\"" : convAmount.toPlainString()) + ")");
No tags attached.
blocks defect 00189593.0MP7 closed jonalegriaesarte error in log file to create a new line in expense sheet window. Error in SE_Expense_Amount callout 
Issue History
2011-11-02 17:33malsasuaTypedefect => backport
2011-11-02 17:33malsasuafix_in_branch => 2.50
2011-11-02 17:34malsasuaWeb browserGoogle Chrome => Google Chrome
2011-11-02 17:34malsasuaTarget Version3.0MP7 => 2.50MP37
2011-12-02 17:56jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2011-12-07 11:33jecharriNote Added: 0043727
2011-12-07 11:33jecharriStatusscheduled => closed
2011-12-07 11:33jecharriResolutionopen => unable to reproduce

Notes
(0043727)
jecharri   
2011-12-07 11:33   
It is unable to reproduce in 2.50, it is only for 3.0