Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035419Openbravo ERP07. Sales managementpublic2017-03-01 15:092017-03-04 14:51
ngarcia 
mcobas 
immediatemajoralways
closedfixed 
5
 
3.0PR17Q13.0PR17Q1 
markmm82
Core
No
0035419: Cannot remove an orphan line from a return to vendor or a return from customer document
Cannot remove an orphan line from a return to vendor or a return from customer document
As group admin role:
   Set the 'RM Allow Orphan Line' to Y
   Log out and log in
   Create a Return To Vendor header
   Insert Orphan Line
   Click Pick/Edit Lines button
   Check No Items to Show is shown in Orphan Lines section

   Create a Return From Customer header
   Insert Orphan Line
   Click Pick/Edit Lines button
   Check 'No Items to Show' is shown in Orphan Lines section
No tags attached.
blocks defect 0035396 closed mcobas Cannot remove an orphan line from a return to vendor or a return from customer document 
Issue History
2017-03-02 19:54markmm82Typedefect => backport
2017-03-02 19:54markmm82Target Version => 3.0PR17Q1
2017-03-04 14:43hgbotCheckin
2017-03-04 14:43hgbotNote Added: 0094756
2017-03-04 14:43hgbotStatusscheduled => resolved
2017-03-04 14:43hgbotResolutionopen => fixed
2017-03-04 14:43hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q1/rev/dc07ac3f254c7c8f9bf6062d22b48d3b092a85f7 [^]
2017-03-04 14:51markmm82Review Assigned To => markmm82
2017-03-04 14:51markmm82Note Added: 0094761
2017-03-04 14:51markmm82Statusresolved => closed
2017-03-04 14:51markmm82Fixed in Version => 3.0PR17Q1

Notes
(0094756)
hgbot   
2017-03-04 14:43   
Repository: erp/backports/3.0PR17Q1
Changeset: dc07ac3f254c7c8f9bf6062d22b48d3b092a85f7
Author: Miguel <martencobasmiguel <at> gmail.com>
Date: Thu Mar 02 14:17:25 2017 -0500
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1/rev/dc07ac3f254c7c8f9bf6062d22b48d3b092a85f7 [^]

Fixes issue 35419:Cannot remove an orphan line in Return to/from vendor/customer

Was not able to remove an orphan line from a return to vendor or a return from
customer document because an incorrect casting to boolean.

When is validating tha Last record is selected inside the Orphan grid lines, the
lastRecord.get("obSelected") object gets as String instead of a Boolean object,
in other case it gets as Boolean.

Now, conditions are rightly validated depending of the class of the object.

---
M modules/org.openbravo.service.datasource/src/org/openbravo/service/datasource/ReadOnlyDataSourceService.java
---
(0094761)
markmm82   
2017-03-04 14:51   
Code review + Testing OK