Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0034195Openbravo ERP07. Sales managementpublic2016-10-13 11:002016-12-16 18:38
nataliag 
markmm82 
urgentmajoralways
closedfixed 
5
 
3.0PR17Q1 
aferraz
Core
No
0034195: Error using copy lines in sales invoice
Error completing a sales invoice which has copied lines from a sales invoice with a different organization.
1- Create a sales invoice using "F&B España - Región Sur" organization.
2- Click on "Copy lines" button and select the invoice Nº1000001 which organization is "F&B España - Región Norte". The lines are copies successfully
3- Now, press "Complete" button, and select "complete" action.
4- Sales invoice is not completed and this error appears:
Error:
The organization of the lines is different and does not depend on the organization associated with the header.
No tags attached.
causes defect 0037119 closed nonofrancisco "Copy Lines" process not properly copying "organization" dimension when defined at invoice line level 
Issue History
2016-10-13 11:00nataliagNew Issue
2016-10-13 11:00nataliagAssigned To => Triage Finance
2016-10-13 11:00nataliagModules => Core
2016-10-13 11:00nataliagResolution time => 1478127600
2016-10-13 11:00nataliagTriggers an Emergency Pack => No
2016-10-13 11:08heccamIssue Monitored: heccam
2016-10-13 16:55markmm82Statusnew => scheduled
2016-10-13 16:57vmromanosAssigned ToTriage Finance => markmm82
2016-10-13 20:49markmm82Note Added: 0090557
2016-10-13 21:15heccamNote Added: 0090559
2016-10-25 14:29hgbotCheckin
2016-10-25 14:29hgbotNote Added: 0090864
2016-10-25 14:29hgbotStatusscheduled => resolved
2016-10-25 14:29hgbotResolutionopen => fixed
2016-10-25 14:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9ec41af386aebcf053fcd8c18034b3093c7b5ae4 [^]
2016-10-25 14:29aferrazReview Assigned To => aferraz
2016-10-25 14:29aferrazNote Added: 0090865
2016-10-25 14:29aferrazStatusresolved => closed
2016-10-25 14:29aferrazFixed in Version => 3.0PR17Q1
2016-12-16 18:38hudsonbotCheckin
2016-12-16 18:38hudsonbotNote Added: 0092555
2017-10-19 23:41aferrazRelationship addedcauses 0037119

Notes
(0090557)
markmm82   
2016-10-13 20:49   
Test Plan
1- Create a sales invoice using "F&B España - Región Sur" organization.
2- Click on "Copy lines" button and select the invoice Nº1000001 which organization is "F&B España - Región Norte". The lines are copies successfully
3- Now, press "Complete" button, and select "complete" action.
4- Sales invoice is completed successfully.

Repeat the test plan above for the purchase flow.
(0090559)
heccam   
2016-10-13 21:15   
Please check the video: https://youtu.be/6FkbkhC_M-I [^]
(0090864)
hgbot   
2016-10-25 14:29   
Repository: erp/devel/pi
Changeset: 9ec41af386aebcf053fcd8c18034b3093c7b5ae4
Author: Mark <markmm82 <at> gmail.com>
Date: Thu Oct 13 13:35:09 2016 -0400
URL: http://code.openbravo.com/erp/devel/pi/rev/9ec41af386aebcf053fcd8c18034b3093c7b5ae4 [^]

Fixes issue 34195: No error in copy lines if sales invoices have different orgs

When the Copy Lines process is executed, the new created lines of the current invoice will take the organization defined in the header as the line's organization. It avoid the possible scenario when the lines were created from have a different organization than defined in the current invoice's header.

---
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice_data.xsql
---
(0090865)
aferraz   
2016-10-25 14:29   
Code review + Testing OK
(0092555)
hudsonbot   
2016-12-16 18:38   
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/dc8bf00badd0 [^]
Maturity status: Test