Openbravo Issue Tracking System - Openbravo ERP  | 
| View Issue Details | 
  | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0040285 | Openbravo ERP | 02. Master data management | public | 2019-02-27 15:12 | 2019-03-28 14:56 | 
  | 
| Reporter | Leyre |   | 
| Assigned To | AtulOpenbravo |   | 
| Priority | high | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed |   | 
| Platform |  | OS | 5 | OS Version |  | 
| Product Version |  |   | 
| Target Version |  | Fixed in Version | 3.0PR19Q2 |   | 
| Merge Request Status |  | 
| Review Assigned To | Sandrahuguet | 
| OBNetwork customer | OBPS | 
| Web browser |  | 
| Modules | Core | 
| Support ticket | 8338 | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
  | 
| Summary | 0040285: Error in Copy Lines -> Purchase invoice when the preference Enable UOM Management is active | 
| Description | Error in Copy Lines -> Purchase invoice when the preference Enable UOM Management is active | 
| Steps To Reproduce | 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 
 | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships |  | 
| Attached Files |   log.txt (2,728) 2019-02-27 15:12 https://issues.openbravo.com/file_download.php?file_id=12690&type=bug | 
  | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2019-02-27 15:12 | Leyre | New Issue |  | 
| 2019-02-27 15:12 | Leyre | Assigned To |  => Triage Finance | 
| 2019-02-27 15:12 | Leyre | File Added: log.txt |  | 
| 2019-02-27 15:12 | Leyre | OBNetwork customer |  => OBPS | 
| 2019-02-27 15:12 | Leyre | Modules |  => Core | 
| 2019-02-27 15:12 | Leyre | Support ticket |  => 8338 | 
| 2019-02-27 15:12 | Leyre | Resolution time |  => 1552431600 | 
| 2019-02-27 15:12 | Leyre | Triggers an Emergency Pack |  => No | 
| 2019-02-28 08:24 | Sandrahuguet | Assigned To | Triage Finance => AtulOpenbravo | 
| 2019-02-28 09:07 | Leyre | Resolution time | 1552431600 => 1553036400 | 
| 2019-03-04 19:33 | AtulOpenbravo | Status | new => scheduled | 
| 2019-03-04 19:33 | AtulOpenbravo | Note Added: 0110207 |  | 
| 2019-03-13 08:59 | hgbot | Checkin |  | 
| 2019-03-13 08:59 | hgbot | Note Added: 0110394 |  | 
| 2019-03-13 08:59 | hgbot | Status | scheduled => resolved | 
| 2019-03-13 08:59 | hgbot | Resolution | open => fixed | 
| 2019-03-13 08:59 | hgbot | Fixed in SCM revision |  => http://code.openbravo.com/erp/devel/pi/rev/8f41e7a205f8423b07122cedf6001da437bd7fda [^] | 
| 2019-03-13 08:59 | hgbot | Checkin |  | 
| 2019-03-13 08:59 | hgbot | Note Added: 0110395 |  | 
| 2019-03-13 08:59 | hgbot | Checkin |  | 
| 2019-03-13 08:59 | hgbot | Note Added: 0110396 |  | 
| 2019-03-13 09:00 | Sandrahuguet | Review Assigned To |  => Sandrahuguet | 
| 2019-03-13 09:00 | Sandrahuguet | Note Added: 0110397 |  | 
| 2019-03-13 09:00 | Sandrahuguet | Status | resolved => closed | 
| 2019-03-13 09:00 | Sandrahuguet | Fixed in Version |  => 3.0PR19Q2 | 
| 2019-03-28 14:56 | hudsonbot | Checkin |  | 
| 2019-03-28 14:56 | hudsonbot | Note Added: 0110866 |  | 
| 2019-03-28 14:56 | hudsonbot | Checkin |  | 
| 2019-03-28 14:56 | hudsonbot | Note Added: 0110867 |  | 
| 2019-03-28 14:56 | hudsonbot | Checkin |  | 
| 2019-03-28 14:56 | hudsonbot | Note Added: 0110868 |  | 
	| 
		Notes	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
		
			
				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 
--- 
			 | 
		 
		 
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 | 
	
		 
	 | 
	| 
		
	 | 
	
		
	 |