Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020136Openbravo ERP03. Procurement managementpublic2012-03-28 13:222012-04-30 16:50
maite 
ioritzCia 
urgentmajoralways
closedfixed 
5
 
3.0MP11 
Core
No
0020136: Error in Pick and Edit process in Return to Vendor window, where receipt has not associated order
Error in Pick and Edit process in Return to Vendor window, where receipt has not associated order
1. Go to Goods Receipt window and create receipt for any BP. Add any line and complete.
2. Go to Return to Vendor window. Create Header form same BP, Organization and posterior date. Press "Pick and Edit Lines" button
3. Realize that grid is loaded and your receipt is showed in grid, but Net Unit Price is null.
4. Select line and press "Done". Realize that line has not been added.

If you have a look to openbravo log you will see that NumberFormatException error has been thrown:
2012-03-28 10:49:27,902 [ajp-8009-1] ERROR org.openbravo.common.actionhandler.SRMOPickEditLines -
java.lang.NumberFormatException at java.math.BigDecimal.<init>(BigDecimal.java:459) at java.math.BigDecimal.<init>(BigDecimal.java:728) at org.openbravo.common.actionhandler.SRMOPickEditLines.createOrderLines

Problem is that field UnitPrice is null because receipt has not associated order
Error is in file SRMOPickEditLines, in line
BigDecimal price = new BigDecimal(selectedLine.getString("unitPrice"));

Data is obtained from C_RM_Order_Pick_Edit_Lines table, as it is defined in AD window "RFC Order Pick / Edit Lines"

Proposed solution is that, when there is no associated order, prices should be taken from price list
No tags attached.
related to defect 00204733.0MP13 closed ioritzCia Error in Pick and Edit process in Return from customer window, where shipment has not associated order 
Issue History
2012-03-28 13:22maiteNew Issue
2012-03-28 13:22maiteAssigned To => vmromanos
2012-03-28 13:22maiteModules => Core
2012-03-28 13:22maiteIssue Monitored: networkb
2012-03-28 13:24vmromanosAssigned Tovmromanos => jonalegriaesarte
2012-04-02 10:56jonalegriaesarteAssigned Tojonalegriaesarte => ioritzCia
2012-04-27 12:18hgbotCheckin
2012-04-27 12:18hgbotNote Added: 0048138
2012-04-27 12:18hgbotStatusnew => resolved
2012-04-27 12:18hgbotResolutionopen => fixed
2012-04-27 12:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/0d30cd20c9f8081e6784c0dd9b3d3f14ce1d841e [^]
2012-04-28 02:31hudsonbotCheckin
2012-04-28 02:31hudsonbotNote Added: 0048175
2012-04-30 16:49maiteNote Added: 0048202
2012-04-30 16:49maiteStatusresolved => closed
2012-05-11 12:15VictorVillarRelationship addedrelated to 0020473

Notes
(0048138)
hgbot   
2012-04-27 12:18   
Repository: erp/devel/pi
Changeset: 0d30cd20c9f8081e6784c0dd9b3d3f14ce1d841e
Author: Ioritz Cia <ioritz.cia <at> openbravo.com>
Date: Fri Apr 27 12:10:26 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/0d30cd20c9f8081e6784c0dd9b3d3f14ce1d841e [^]

Fixes issue 20136: Error in Pick and Edit process in Return to Vendor window.
Where receipt has not an associated order.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/common/actionhandler/SRMOPickEditLines.java
---
(0048175)
hudsonbot   
2012-04-28 02:31   
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/cd923b317af4 [^]

Maturity status: Test
(0048202)
maite   
2012-04-30 16:49   
verified.