Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0040285Openbravo ERP02. Master data managementpublic2019-02-27 15:122019-03-28 14:56
Leyre 
AtulOpenbravo 
highmajoralways
closedfixed 
5
 
3.0PR19Q2 
Sandrahuguet
Core
No
0040285: Error in Copy Lines -> Purchase invoice when the preference Enable UOM Management is active
Error in Copy Lines -> Purchase invoice when the preference Enable UOM Management is active
1. Activate the Enable UOM Management preference.

2. Generate a new Purchase invoice with a line -> check "Financial Invoice Line" selected.

3. Create another Purchase Invoice and "Copy Lines" from the previous Purchase Invoice.

-> Check that the screen shows an error:

Error:
Process failed during execution

Log attached log.txt
No tags attached.
txt log.txt (2,728) 2019-02-27 15:12
https://issues.openbravo.com/file_download.php?file_id=12690&type=bug
Issue History
2019-02-27 15:12LeyreNew Issue
2019-02-27 15:12LeyreAssigned To => Triage Finance
2019-02-27 15:12LeyreFile Added: log.txt
2019-02-27 15:12LeyreModules => Core
2019-02-27 15:12LeyreResolution time => 1552431600
2019-02-27 15:12LeyreTriggers an Emergency Pack => No
2019-02-28 08:24SandrahuguetAssigned ToTriage Finance => AtulOpenbravo
2019-02-28 09:07LeyreResolution time1552431600 => 1553036400
2019-03-04 19:33AtulOpenbravoStatusnew => scheduled
2019-03-04 19:33AtulOpenbravoNote Added: 0110207
2019-03-13 08:59hgbotCheckin
2019-03-13 08:59hgbotNote Added: 0110394
2019-03-13 08:59hgbotStatusscheduled => resolved
2019-03-13 08:59hgbotResolutionopen => fixed
2019-03-13 08:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/8f41e7a205f8423b07122cedf6001da437bd7fda [^]
2019-03-13 08:59hgbotCheckin
2019-03-13 08:59hgbotNote Added: 0110395
2019-03-13 08:59hgbotCheckin
2019-03-13 08:59hgbotNote Added: 0110396
2019-03-13 09:00SandrahuguetReview Assigned To => Sandrahuguet
2019-03-13 09:00SandrahuguetNote Added: 0110397
2019-03-13 09:00SandrahuguetStatusresolved => closed
2019-03-13 09:00SandrahuguetFixed in Version => 3.0PR19Q2
2019-03-28 14:56hudsonbotCheckin
2019-03-28 14:56hudsonbotNote Added: 0110866
2019-03-28 14:56hudsonbotCheckin
2019-03-28 14:56hudsonbotNote Added: 0110867
2019-03-28 14:56hudsonbotCheckin
2019-03-28 14:56hudsonbotNote Added: 0110868

Notes
(0110207)
AtulOpenbravo   
2019-03-04 19:33   
Test Plan

- Add Enable UOM Management preference for F&B International Group client.
- Add G/L Item, set Enable in Financial Invoice =Yes, set tax = exempt.
- Create a new Purchase invoice with a line -> check "Financial Invoice Line" selected, select above G/L item, add price. Complete invoice.
- Create another Purchase Invoice and using "Copy Lines" select previous Purchase Invoice.
- Lines are successfully created.
(0110394)
hgbot   
2019-03-13 08:59   
Repository: erp/devel/pi
Changeset: 8f41e7a205f8423b07122cedf6001da437bd7fda
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Mar 04 11:04:58 2019 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/8f41e7a205f8423b07122cedf6001da437bd7fda [^]

Fixes Issue 0040285: Error in Copy Lines -> Purchase invoice when
the preference Enable UOM Management is active

** Not empty check for product id is done before getting default aum

---
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
---
(0110395)
hgbot   
2019-03-13 08:59   
Repository: erp/devel/pi
Changeset: 8351f0739a6cf96a08b862b7bc86d8ca95c27235
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Mon Mar 04 11:14:04 2019 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/8351f0739a6cf96a08b862b7bc86d8ca95c27235 [^]

Related To Issue 0040285: Error in Copy Lines -> Purchase invoice
when the preference Enable UOM Management is active

** Use StringUtils to avoid NPE

---
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
---
(0110396)
hgbot   
2019-03-13 08:59   
Repository: erp/devel/pi
Changeset: 694c66ecffcfc4c3e745f225b06a16571bfda6f0
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Tue Mar 05 00:11:39 2019 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/694c66ecffcfc4c3e745f225b06a16571bfda6f0 [^]

Related to Issue 40285:Error in Copy Lines -> Purchase invoice when the
preference Enable UOM Management is active

** Use StringUtils to avoid NPE

---
M src/org/openbravo/erpCommon/ad_actionButton/CopyFromInvoice.java
---
(0110397)
Sandrahuguet   
2019-03-13 09:00   
Code review + testing OK
(0110866)
hudsonbot   
2019-03-28 14:56   
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/b2fbc1588df4 [^]
Maturity status: Test
(0110867)
hudsonbot   
2019-03-28 14:56   
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/b2fbc1588df4 [^]
Maturity status: Test
(0110868)
hudsonbot   
2019-03-28 14:56   
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/b2fbc1588df4 [^]
Maturity status: Test