Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0017118Openbravo ERP03. Procurement managementpublic2011-05-11 13:282011-05-19 09:43
maite 
adrianromero 
urgentmajoralways
closedfixed 
5
2.50MP29 
2.50MP302.50MP30 
OBPS
Core
No
0017118: 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.
depends on defect 00172123.0MP0 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-11 13:28maiteNew Issue
2011-05-11 13:28maiteAssigned To => adrianromero
2011-05-11 13:28maiteModules => Core
2011-05-11 13:28maiteOBNetwork customer => Yes
2011-05-11 13:30maiteIssue Monitored: networkb
2011-05-17 17:25adrianromeroStatusnew => scheduled
2011-05-17 17:25adrianromeroTypedefect => backport
2011-05-17 17:26adrianromeroIssue cloned0017212
2011-05-17 17:26adrianromeroRelationship addeddepends on 0017212
2011-05-17 17:27hgbotCheckin
2011-05-17 17:27hgbotNote Added: 0037100
2011-05-17 17:27hgbotStatusscheduled => resolved
2011-05-17 17:27hgbotResolutionopen => fixed
2011-05-17 17:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/375d11540b62362e79e9c5ec14e9f433e73da437 [^]
2011-05-17 17:33adrianromeroNote Added: 0037102
2011-05-19 09:43maiteNote Added: 0037187
2011-05-19 09:43maiteStatusresolved => closed
2011-05-19 09:43maiteFixed in Version => 2.50MP30

Notes
(0037100)
hgbot   
2011-05-17 17:27   
Repository: erp/stable/2.50
Changeset: 375d11540b62362e79e9c5ec14e9f433e73da437
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Tue May 17 17:25:03 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/375d11540b62362e79e9c5ec14e9f433e73da437 [^]

Fixes issue 0017118: 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
---
(0037102)
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.
(0037187)
maite   
2011-05-19 09:43   
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.