Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0035421Openbravo ERP07. Sales managementpublic2017-03-01 15:092017-03-04 14:50
ngarcia 
mcobas 
immediatemajoralways
closedfixed 
5
 
3.0PR16Q3.63.0PR16Q3.6 
markmm82
Core
No
0035421: 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.0PR16Q3.6
2017-03-04 14:49hgbotCheckin
2017-03-04 14:49hgbotNote Added: 0094758
2017-03-04 14:49hgbotStatusscheduled => resolved
2017-03-04 14:49hgbotResolutionopen => fixed
2017-03-04 14:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR16Q3.6/rev/3a412744a7b5532092913a88eeca22b6acbd23ea [^]
2017-03-04 14:50markmm82Review Assigned To => markmm82
2017-03-04 14:50markmm82Note Added: 0094759
2017-03-04 14:50markmm82Statusresolved => closed
2017-03-04 14:50markmm82Fixed in Version => 3.0PR16Q3.6

Notes
(0094758)
hgbot   
2017-03-04 14:49   
Repository: erp/backports/3.0PR16Q3.6
Changeset: 3a412744a7b5532092913a88eeca22b6acbd23ea
Author: Miguel <martencobasmiguel <at> gmail.com>
Date: Thu Mar 02 14:14:42 2017 -0500
URL: http://code.openbravo.com/erp/backports/3.0PR16Q3.6/rev/3a412744a7b5532092913a88eeca22b6acbd23ea [^]

Fixes issue 35421: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
---
(0094759)
markmm82   
2017-03-04 14:50   
Code review + Testing OK