Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014450Openbravo ERPA. Platformpublic2010-09-06 18:422010-09-15 00:00
mirurita 
dbaz 
normalmajoralways
closedfixed 
5
 
2.50MP22 
Core
No
0014450: formattedNumberOp function in Utils.js doesn't work with negative amounts
formattedNumberOp function in Utils.js does not work with negative amounts.

Try to call with:

formattedNumberOp('12', '-', '-10', ...)
use parethesis

result = eval('('+number1+')' + operator + '('+number2+')');
No tags attached.
Issue History
2010-09-06 18:42miruritaNew Issue
2010-09-06 18:42miruritaAssigned To => dbaz
2010-09-06 18:44hgbotCheckin
2010-09-06 18:44hgbotNote Added: 0030661
2010-09-06 18:44hgbotStatusnew => resolved
2010-09-06 18:44hgbotResolutionopen => fixed
2010-09-06 18:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/91649d295b9ae3b7e02bdeebde61e56fce7d9dc1 [^]
2010-09-07 09:18hudsonbotCheckin
2010-09-07 09:18hudsonbotNote Added: 0030723
2010-09-14 19:17miruritaNote Added: 0031065
2010-09-14 19:17miruritaStatusresolved => closed
2010-09-15 00:00anonymoussf_bug_id0 => 3066290

Notes
(0030661)
hgbot   
2010-09-06 18:44   
Repository: erp/devel/pi
Changeset: 91649d295b9ae3b7e02bdeebde61e56fce7d9dc1
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Mon Sep 06 18:43:58 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/91649d295b9ae3b7e02bdeebde61e56fce7d9dc1 [^]

Fixed issue 14450: Now formattedNumberOp works properly with negative amounts

---
M src/org/openbravo/erpCommon/security/Login_F1.html
M web/js/utils.js
---
(0030723)
hudsonbot   
2010-09-07 09:18   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/91649d295b9a [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/4390fe5213a4 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18274.obx [^]
(0031065)
mirurita   
2010-09-14 19:17   
verified, it's working.