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

Notes
(0094757)
hgbot   
2017-03-04 14:46   
Repository: erp/backports/3.0PR16Q4.3
Changeset: 6c57087b7d9a95478e83e091712c4c8398f1bcc4
Author: Miguel <martencobasmiguel <at> gmail.com>
Date: Thu Mar 02 14:16:00 2017 -0500
URL: http://code.openbravo.com/erp/backports/3.0PR16Q4.3/rev/6c57087b7d9a95478e83e091712c4c8398f1bcc4 [^]

Fixes issue 35420: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
---
(0094760)
markmm82   
2017-03-04 14:51   
Code review + Testing OK