Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009325Openbravo ERP09. Financial managementpublic2009-06-04 08:242009-07-16 17:55
networkb 
areefbasha 
immediatemajoralways
closedfixed 
30
2.40MP3 
pi 
Core
No
0009325: The invoices without lines are not posted and you get an error in the packground process that stop the process
The invoices without lines are not posted and you get an error in the packground process that stop the process
-Create a new invoice without lines
-Complete the invoice
-Try to post, and you get an error.
-The error also happens in the background posting process
Since it is possible to complete an invoice without lines but having taxes (customs invoice) the solution must be:

Allow to complete (from Draft to Complete) an invoice only in these cases:
* There are invoice lines
* There are tax lines
* There are both invoice and tax lines
No tags attached.
depends on backport 0009427 closed areefbasha The invoices without lines are not posted and you get an error in the packground process that stop the process 
related to defect 00116452.40MP14 closed harikrishnan You can't reactivate an invoice created in a last version 
Issue History
2009-06-04 08:24networkbNew Issue
2009-06-04 08:24networkbAssigned To => rafaroda
2009-06-05 12:37rafarodaNote Added: 0017014
2009-06-05 12:37rafarodaAssigned Torafaroda => eduardo_Argal
2009-06-05 12:37rafarodaStatusnew => feedback
2009-06-09 10:06networkbNote Added: 0017128
2009-06-09 10:20networkbStatusfeedback => new
2009-06-10 17:55psarobeStatusnew => scheduled
2009-06-10 17:55psarobefix_in_branch => pi
2009-06-16 12:30networkbNote Added: 0017343
2009-06-22 13:31psarobefix_in_branchpi =>
2009-06-22 13:31psarobeSteps to Reproduce Updated
2009-06-22 13:32psarobeAssigned Toeduardo_Argal => rafaroda
2009-06-22 17:23psarobeSteps to Reproduce Updated
2009-06-22 17:59rafarodaSteps to Reproduce Updated
2009-06-22 17:59rafarodaAssigned Torafaroda => areefbasha
2009-06-26 07:41hgbotCheckin
2009-06-26 07:41hgbotNote Added: 0017604
2009-06-26 07:41hgbotStatusscheduled => resolved
2009-06-26 07:41hgbotResolutionopen => fixed
2009-06-26 07:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c514d884966bf7e9b1aeb203071e7ca647bdbc5c [^]
2009-07-03 12:38sureshbabuStatusresolved => closed
2009-07-03 12:38sureshbabuNote Added: 0017786
2009-07-03 12:38sureshbabuFixed in Version => pi
2009-07-16 17:55anonymoussf_bug_id0 => 2822557
2009-12-11 18:08rafarodaRelationship addedrelated to 0011645

Notes
(0017014)
rafaroda   
2009-06-05 12:37   
"-Try to post, and you get an error." We could not reproduce this step: invoice was posted but no general ledger journal was shown. Please give more details in order to reproduce this issue.

Thanks.
(0017128)
networkb   
2009-06-09 10:06   
We are trying to reproduce the error but maybe it has sense to not allow to complete a order if it has not lines.
Do you think that it has sense?
(0017343)
networkb   
2009-06-16 12:30   
After discuss, it should be possible to complete invoices without lines, because in some cases are needed to include only taxes.
The problem in this case, is that the background process goes to a infinite loop
(0017604)
hgbot   
2009-06-26 07:41   
Repository: erp/devel/pi
Changeset: c514d884966bf7e9b1aeb203071e7ca647bdbc5c
Author: Areef Basha <areef.basha <at> openbravo.com>
Date: Fri Jun 26 11:06:39 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/c514d884966bf7e9b1aeb203071e7ca647bdbc5c [^]

Fixed bug 9325. The invoices without lines are not posted.
Now the invoice has been made to complete only if it has line(s).

---
M src-db/database/model/functions/C_INVOICE_POST.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0017786)
sureshbabu   
2009-07-03 12:38   
Tested in both the context working fine