Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017212Openbravo ERP03. Procurement managementpublic2011-05-17 17:262011-05-26 07:44
adrianromero 
adrianromero 
urgentmajoralways
closedfixed 
5
pi 
3.0MP03.0MP0 
Core
No
0017212: Should not be possible to void an invoice with no lines, as it is not possible to complete it
Should not be possible to void an invoice with no lines, as it is not possible to complete it
1. Create Purchase invoice for mcgiver
2. Add line with any product and any tax. Go to Tax tab and realize that tax line is there.
3. Delete line
4. Go to invoice header and try to Complete invoice. You will obtain coherent error.
5. Try to void the invoice and realize that you are able to void and post it.
No tags attached.
blocks backport 00171182.50MP30 closed adrianromero Should not be possible to void an invoice with no lines, as it is not possible to complete it 
Issue History
2011-05-17 17:26adrianromeroNew Issue
2011-05-17 17:26adrianromeroAssigned To => adrianromero
2011-05-17 17:26adrianromeroModules => Core
2011-05-17 17:26adrianromeroIssue generated from0017118
2011-05-17 17:26adrianromeroRelationship addedblocks 0017118
2011-05-17 17:30hgbotCheckin
2011-05-17 17:30hgbotNote Added: 0037101
2011-05-17 17:30hgbotStatusnew => resolved
2011-05-17 17:30hgbotResolutionopen => fixed
2011-05-17 17:30hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fe95455737a570a553df541b7d4dcb9425f7635b [^]
2011-05-17 17:33adrianromeroNote Added: 0037103
2011-05-19 09:44maiteNote Added: 0037188
2011-05-19 09:44maiteStatusresolved => closed
2011-05-19 09:44maiteFixed in Version => 3.0MP0
2011-05-26 07:44hudsonbotCheckin
2011-05-26 07:44hudsonbotNote Added: 0037479

Notes
(0037101)
hgbot   
2011-05-17 17:30   
Repository: erp/devel/pi
Changeset: fe95455737a570a553df541b7d4dcb9425f7635b
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue May 17 17:29:14 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fe95455737a570a553df541b7d4dcb9425f7635b [^]

Fixes issue 0017212: Should not be possible to void an invoice with no lines, as it is not possible to complete it
It has been added a check in the C_INVOICE_POST function that verifies that an invoice must not be voided if it has no lines and no taxes

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0037103)
adrianromero   
2011-05-17 17:33   
* Testing the issue

Verify that sales invoices and purchase invoices in draft cannot be voided if it has no lines and no taxes.

* Other areas affected

No other areas affected. Only the C_INVOICE_POST function for draft invoices that are posted to be voided has been modified.
(0037188)
maite   
2011-05-19 09:44   
Verified.
When trying to void invoice without lines you obtain error message. Also verifies that standard flow (reactivate, complete and void the invoice) works as expected.
(0037479)
hudsonbot   
2011-05-26 07:44   
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/728387046be6 [^]

Maturity status: Test