Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009427Openbravo ERP09. Financial managementpublic2009-06-04 08:242009-07-10 12:44
networkb 
areefbasha 
immediatemajoralways
closedfixed 
30
2.40MP3 
2.40MP7 
Core
No
0009427: 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.
related to backport 00117512.40MP14 closed harikrishnan You can't reactivate an invoice created in a last version 
blocks defect 0009325 closed areefbasha The invoices without lines are not posted and you get an error in the packground process that stop the process 
Issue History
2009-06-10 17:55psarobeTypedefect => backport
2009-06-10 17:55psarobefix_in_branch => 2.40
2009-06-22 18:00rafarodaAssigned Toeduardo_Argal => areefbasha
2009-06-22 18:00rafarodaSteps to Reproduce Updated
2009-06-26 07:36hgbotCheckin
2009-06-26 07:36hgbotNote Added: 0017601
2009-06-26 07:36hgbotStatusscheduled => resolved
2009-06-26 07:36hgbotResolutionopen => fixed
2009-06-26 07:36hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/4a96b6600e1de28c3b0f691138c7fffe18c26ac2 [^]
2009-07-01 12:40sureshbabuStatusresolved => new
2009-07-01 12:40sureshbabuResolutionfixed => open
2009-07-01 12:40sureshbabuNote Added: 0017729
2009-07-01 15:36sureshbabuNote Edited: 0017729
2009-07-06 09:05rafarodaStatusnew => scheduled
2009-07-06 09:06rafarodaNote Added: 0017923
2009-07-06 09:06rafarodaStatusscheduled => resolved
2009-07-09 19:18rafarodaStatusresolved => new
2009-07-09 19:18rafarodaNote Added: 0018069
2009-07-09 19:18rafarodaStatusnew => scheduled
2009-07-09 19:18rafarodaFixed in SCM revisionhttp://code.openbravo.com/erp/stable/2.40/rev/4a96b6600e1de28c3b0f691138c7fffe18c26ac2 [^] =>
2009-07-10 08:45hgbotCheckin
2009-07-10 08:45hgbotNote Added: 0018074
2009-07-10 08:45hgbotStatusscheduled => resolved
2009-07-10 08:45hgbotResolutionopen => fixed
2009-07-10 08:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/77bdb1ee15e6fd095a0d89bcbe3417134786d71d [^]
2009-07-10 12:44sureshbabuStatusresolved => closed
2009-07-10 12:44sureshbabuNote Added: 0018096
2009-07-10 12:44sureshbabuFixed in Version => 2.40MP7
2009-12-11 18:12rafarodaRelationship addedrelated to 0011751

Notes
(0017601)
hgbot   
2009-06-26 07:36   
Repository: erp/stable/2.40
Changeset: 4a96b6600e1de28c3b0f691138c7fffe18c26ac2
Author: Areef Basha <areef.basha <at> openbravo.com>
Date: Fri Jun 26 11:01:09 2009 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/4a96b6600e1de28c3b0f691138c7fffe18c26ac2 [^]

Fixed bug 9427. 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
---
(0017729)
sureshbabu   
2009-07-01 12:40   
(edited on: 2009-07-01 15:36)
Hi

Its working fine for Oracle context but the fix is not working as expected in Postgres context.

Thanks
Suresh.

(0017923)
rafaroda   
2009-07-06 09:06   
Tested on PostgreSQL and working fine for me.

Suresh, could you please double-check?

Thanks.
(0018069)
rafaroda   
2009-07-09 19:18   
Defect re-opened.

Fix is not acceptable since records in Core Range has been inserted into AD_MESSAGE https://code.openbravo.com/erp/stable/2.40/diff/4a96b6600e1d/src-db/database/sourcedata/AD_MESSAGE.xml [^]

Please remove this record of the Core Range, set properly your development environment ID, ant update.database and recreate the message in AD_MESSAGE.

Related to issue https://issues.openbravo.com/view.php?id=9794#bugnotes [^]

Thanks.
(0018074)
hgbot   
2009-07-10 08:45   
Repository: erp/stable/2.40
Changeset: 77bdb1ee15e6fd095a0d89bcbe3417134786d71d
Author: Areef Basha <areef.basha <at> openbravo.com>
Date: Fri Jul 10 12:11:20 2009 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/77bdb1ee15e6fd095a0d89bcbe3417134786d71d [^]

Fixed bug 9427. 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/sourcedata/AD_MESSAGE.xml
---
(0018096)
sureshbabu   
2009-07-10 12:44   
Tested working fine in both the context