| Openbravo Issue Tracking System - Openbravo ERP | 
| View Issue Details | 
| 
 | 
| ID | Project | Category | View Status | Date Submitted | Last Update | 
| 0012230 | Openbravo ERP | 03. Procurement management | public | 2010-02-11 12:38 | 2010-03-10 18:29 | 
| 
 | 
| Reporter | dalsasua |  | 
| Assigned To | rafaroda |  | 
| Priority | immediate | Severity | major | Reproducibility | always | 
| Status | closed | Resolution | fixed |  | 
| Platform |  | OS | 20 | OS Version | Ubuntu 9.04 | 
| Product Version | pi |  | 
| Target Version | pi | Fixed in Version | 2.50MP12 |  | 
| Merge Request Status |  | 
| Review Assigned To |  | 
| OBNetwork customer | No | 
| Web browser |  | 
| Modules | Core | 
| Support ticket |  | 
| Regression level |  | 
| Regression date |  | 
| Regression introduced in release |  | 
| Regression introduced by commit |  | 
| Triggers an Emergency Pack | No | 
| 
 | 
| Summary | 0012230: not able to void invoices | 
| Description | If you try to void a completed purchase invoice (no matter if posted of not), in Oracle is thrown the error ORA-01403: no data found\\nORA-01403: no data found, and in Postgresql the DATA_EXCEPTION error. | 
| Steps To Reproduce | - Login as Openbravo Admin - Go to Procurement Management || Transactions || Purchase Invoice  ||  Header
 - Go to invoice number 10000000
 - Void it-> error is shown
 - Create a new invoice, add lines, complete
 - Void it -> error is shown
 | 
| Proposed Solution |  | 
| Additional Information |  | 
| Tags | No tags attached. | 
| Relationships | | related to | feature request | 0009520 |  | closed | iciordia | While voiding an AR invoice or an AP invoice the system should allow the user to change "document date" and "posting date" |  | related to | defect | 0009519 |  | closed | rakheemohanlal | While voiding an AR invoice or an AP invoice the system shows former "document date" and "posting date" dates |  | related to | defect | 0010807 | 2.50MP8 | closed | rafaroda | The documentno on invoices is not unique | 
 | 
| Attached Files |  | 
| 
 | 
| Issue History | 
| Date Modified | Username | Field | Change | 
| 2010-02-11 12:38 | dalsasua | New Issue |  | 
| 2010-02-11 12:38 | dalsasua | Assigned To | => psarobe | 
| 2010-02-11 12:38 | dalsasua | OBNetwork customer | => No | 
| 2010-02-11 18:30 | psarobe | Assigned To | psarobe => rafaroda | 
| 2010-02-11 18:30 | psarobe | Priority | normal => immediate | 
| 2010-02-11 18:30 | psarobe | Status | new => scheduled | 
| 2010-02-15 11:32 | rafaroda | Note Added: 0024257 |  | 
| 2010-02-15 11:44 | rafaroda | Relationship added | related to 0009520 | 
| 2010-02-15 11:45 | rafaroda | Relationship added | related to 0009519 | 
| 2010-02-16 12:34 | rafaroda | Note Added: 0024400 |  | 
| 2010-02-16 12:55 | rafaroda | Relationship added | related to 0010807 | 
| 2010-02-16 12:56 | rafaroda | Note Added: 0024402 |  | 
| 2010-02-16 15:15 | hgbot | Checkin |  | 
| 2010-02-16 15:15 | hgbot | Note Added: 0024415 |  | 
| 2010-02-16 15:15 | hgbot | Status | scheduled => resolved | 
| 2010-02-16 15:15 | hgbot | Resolution | open => fixed | 
| 2010-02-16 15:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/7de7c4a6be7eb6b511d2156f5c75b9953af86bf9 [^] | 
| 2010-02-17 11:42 | arunkumar | Note Added: 0024473 |  | 
| 2010-02-17 11:42 | arunkumar | Status | resolved => closed | 
| 2010-02-17 11:42 | arunkumar | Fixed in Version | => 2.50MP12 | 
| 2010-02-18 00:01 | anonymous | sf_bug_id | 0 => | 
| 2010-02-18 00:31 | hudsonbot | Checkin |  | 
| 2010-02-18 00:31 | hudsonbot | Note Added: 0024540 |  | 
| 2010-03-10 18:29 | anonymous | sf_bug_id | => 2968051 | 
	| Notes | 
	| 
 | 
	|  | 
		
			| If you open the current period, the invoice is voided (reversed) properly. 
 The problem comes here in the creation and completion of the reversal invoice: "Period not opened" message is not displayed and process continues, leading to a no data found error.
 |  | 
	| 
 | 
	|  | 
		
			| Issue also happens with the following steps: * 2010 period is NOT open.
 * Create a Sales or Purchase Invoice with a line and try to complete it: ORA-01403: no data found: ERROR
 * Create a Goods Shipment or receipt with a line and complete it: The Period does not exist or it is not opened: CORRECT
 |  | 
	| 
 | 
	|  | 
		
			| The issue is related to the fix of issue 0010807 |  | 
	| 
 | 
	| 
		
			| (0024415) |  
			| hgbot |  
			| 2010-02-16 15:15 |  | 
		
			| Repository: erp/devel/pi Changeset: 7de7c4a6be7eb6b511d2156f5c75b9953af86bf9
 Author: Rafa Roda Palacios <rafael.roda <at> openbravo.com>
 Date: Tue Feb 16 15:08:01 2010 +0100
 URL: http://code.openbravo.com/erp/devel/pi/rev/7de7c4a6be7eb6b511d2156f5c75b9953af86bf9 [^]
 
 Fixes issue 12230 Check for repeated invoice document nos works also now for non existing periods. Related to issue 10807
 
 ---
 M src-db/database/model/functions/C_INVOICE_POST.xml
 ---
 
 |  | 
	| 
 | 
	|  |  | 
	| 
 | 
	|  |  |