Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037121Openbravo ERP03. Procurement managementpublic2017-10-19 17:092017-10-24 16:23
maite 
nonofrancisco 
immediatemajoralways
closedfixed 
5
 
3.0PR17Q3.1 
dmiguelez
Core
No
0037121: "Copy Lines" process not properly copying "organization" dimension when defined at invoice line level
"Copy lines" process is properly copying another accounting dimensions defined at line level, such as Cost Center, but it nos properly copying Organization accounting dimension
0. Access "Client" window and set "Organization" as "Show in lines" and "Cost Center" as "Show in lines"
1. Access Dimensions tab, filter by "AR Invoice" and "AP Invoice" and set "Organization" as "Show in lines"
2. Access Cost Center window and define 2 records: cc1 and cc2
3. Define Conversion rate between EUR and USD for toda's date
4. Logout and login again
5. Create new Purchase Invoice for "España" organization and today's date
6. Add line for any product, set Organization dimension "España norte" and Cost Center "a"
7. Add line for any other product, set Organization dimension "España sur" and Cost Center "b". Process invoice
8. Create new Purchase Invoice for "España" organization and today's date. Run "Copy lines" and select previous invoice

Realize that Cost Center information has been correctly copied but NOT Organization information
No tags attached.
blocks defect 0037119 closed nonofrancisco "Copy Lines" process not properly copying "organization" dimension when defined at invoice line level 
Issue History
2017-10-19 17:36nonofranciscoTypedefect => backport
2017-10-19 17:36nonofranciscoTarget Version => 3.0PR17Q3.1
2017-10-24 16:23hgbotCheckin
2017-10-24 16:23hgbotNote Added: 0100038
2017-10-24 16:23hgbotStatusscheduled => resolved
2017-10-24 16:23hgbotResolutionopen => fixed
2017-10-24 16:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q3.1/rev/6f9ef7e4608e50ec04b37b7c48d28a786e79ce82 [^]
2017-10-24 16:23dmiguelezReview Assigned To => dmiguelez
2017-10-24 16:23dmiguelezNote Added: 0100039
2017-10-24 16:23dmiguelezStatusresolved => closed

Notes
(0100038)
hgbot   
2017-10-24 16:23   
Repository: erp/backports/3.0PR17Q3.1
Changeset: 6f9ef7e4608e50ec04b37b7c48d28a786e79ce82
Author: David Miguelez <david.miguelez <at> openbravo.com>
Date: Tue Oct 24 11:15:58 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q3.1/rev/6f9ef7e4608e50ec04b37b7c48d28a786e79ce82 [^]

Fixes Issue 37121. Sets correct Organization in new Invoice line

* If the organization of the original invoice line belongs to the child
  tree of the organization of the document header of the new line,
  use the organization of the original invoice line
* If not, use the organization of the document header of the new line

---
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
---
(0100039)
dmiguelez   
2017-10-24 16:23   
Code Review + Testing Ok