Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0018959Openbravo ERP08. Project and service managementpublic2011-11-02 17:292011-12-23 10:35
malsasua 
jonalegriaesarte 
highminoralways
closedfixed 
20Community Appliance
 
3.0MP73.0MP7 
Google Chrome
Core
No
0018959: 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.
depends on backport 00189602.50MP37 closed jecharri error in log file to create a new line in expense sheet window. Error in SE_Expense_Amount callout 
has duplicate defect 00192653.0MP7 closed jonalegriaesarte Callout "SE_Expense_Amount" fails 
Issue History
2011-11-02 17:29malsasuaNew Issue
2011-11-02 17:29malsasuaAssigned To => jonalegriaesarte
2011-11-02 17:29malsasuaWeb browser => Google Chrome
2011-11-02 17:29malsasuaModules => Core
2011-11-02 17:32malsasuaWeb browserGoogle Chrome => Google Chrome
2011-11-02 17:32malsasuaTarget Version => 3.0MP7
2011-11-02 17:33malsasuaWeb browserGoogle Chrome => Google Chrome
2011-11-02 17:33malsasuaResolution time => 1326236400
2011-11-02 17:33malsasuaStatusnew => scheduled
2011-11-02 17:33malsasuafix_in_branch => pi
2011-12-09 12:58hgbotCheckin
2011-12-09 12:58hgbotNote Added: 0043766
2011-12-09 12:58hgbotStatusscheduled => resolved
2011-12-09 12:58hgbotResolutionopen => fixed
2011-12-09 12:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c8a8185b5683f23b235e3b32c2fa3553101c3fc8 [^]
2011-12-09 13:05jonalegriaesarteRelationship addedhas duplicate 0019265
2011-12-13 16:43hudsonbotCheckin
2011-12-13 16:43hudsonbotNote Added: 0043834
2011-12-23 10:35jonalegriaesarteNote Added: 0044018
2011-12-23 10:35jonalegriaesarteStatusresolved => closed
2011-12-23 10:35jonalegriaesarteFixed in Version => 3.0MP7

Notes
(0043766)
hgbot   
2011-12-09 12:58   
Repository: erp/devel/pi
Changeset: c8a8185b5683f23b235e3b32c2fa3553101c3fc8
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Fri Dec 09 12:57:47 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c8a8185b5683f23b235e3b32c2fa3553101c3fc8 [^]

Fixes issue 18959: error in log file to create a new line in expense sheet window.
Error in SE_Expense_Amount callout

---
M src/org/openbravo/erpCommon/ad_callouts/SE_Expense_Amount.java
---
(0043834)
hudsonbot   
2011-12-13 16:43   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/8a06361cc265 [^]

Maturity status: Test
(0044018)
jonalegriaesarte   
2011-12-23 10:35   
The error does not appear in the logs.