Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020589Openbravo ERP03. Procurement managementpublic2012-05-23 13:182012-06-12 11:18
mirurita 
naiaramartinez 
highmajoralways
closedfixed 
20Community Appliance
 
3.0MP13 
Core
No
0020589: [Pick&Execute] JS error when validating returned amount field on "return to vendor" pick&edit window
Enter an invalid number, for example dot (.), on returned column of "return to vendor" pick&edit window.

See on ob-return-material.js file the following js function
OB.RM.RMOrderQtyValidate

You get the following error:
Uncaught BigDecimal(): Not a number: .
1) Go to Return to Vendor window
2) Create a new record for:
    Org: F&B US, Inc.
    Business Partner: Be Soft Drinker, Inc.
3) Save.
4) Click on Pick/Edit Lines button
5) Clear the filter.
6) Select any line and the "returned" cell gets the focus. Realize that the field is mandatory.
7) Enter an invalid value (dot): .
8) Press enter key
9) You get an JS error. After this point you cannot work in the application.
No tags attached.
Issue History
2012-05-23 13:18miruritaNew Issue
2012-05-23 13:18miruritaAssigned To => mirurita
2012-05-23 13:18miruritaModules => Core
2012-05-31 10:35naiaramartinezAssigned Tomirurita => naiaramartinez
2012-05-31 10:35naiaramartinezStatusnew => scheduled
2012-05-31 10:35naiaramartinezfix_in_branch => pi
2012-05-31 10:49naiaramartinezNote Added: 0049522
2012-06-12 11:15hgbotCheckin
2012-06-12 11:15hgbotNote Added: 0049747
2012-06-12 11:15hgbotStatusscheduled => resolved
2012-06-12 11:15hgbotResolutionopen => fixed
2012-06-12 11:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0f8fd9baa16ec83fd429bd88b0d04558ec635358 [^]
2012-06-12 11:18miruritaNote Added: 0049751
2012-06-12 11:18miruritaStatusresolved => closed
2012-06-12 11:18miruritaFixed in Version => 3.0MP13

Notes
(0049522)
naiaramartinez   
2012-05-31 10:49   
Test Plan:
  - Go to Return to Vendor window.
  - Create a new record for:
       Org: F&B US, Inc.
       Business Partner: Be Soft Drinker, Inc.
  - Save it.
  - Click on Pick/Edit Lines button
  - Select any line and the "returned" cell gets the focus. Realize that the field is mandatory.
  - Enter an invalid value (dot): .
  - Press enter key or select any other line
  Notice that you don't get any JS error. Moreover, if you go to the openbravo log, you can see that there is no java error, either.
(0049747)
hgbot   
2012-06-12 11:15   
Repository: erp/devel/pi
Changeset: 0f8fd9baa16ec83fd429bd88b0d04558ec635358
Author: Naiara Martinez <naiara.martinez <at> openbravo.com>
Date: Fri Jun 01 14:53:40 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0f8fd9baa16ec83fd429bd88b0d04558ec635358 [^]

fixed bug 20589 JS and Java error trying to convert string in number

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/return-material/ob-return-material.js
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/reference/NumberUIDefinition.java
---
(0049751)
mirurita   
2012-06-12 11:18   
code review + testing OK