Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011645Openbravo ERP03. Procurement managementpublic2009-12-04 13:232010-03-10 18:28
networkb 
harikrishnan 
urgentmajoralways
closedfixed 
5
2.40MP11 
2.40MP142.50MP12 
Core
No
0011645: You can't reactivate an invoice created in a last version
In versions like 2.40MP3 or 2.40MP4 you can complete an invoice without lines. If you update to 2.40MP11 you can't reactivate this invoice because it hasn't lines.
-Complete an invoice without lines in 2.40MP4
-Update the version
-Realize that it is not possible reactivate the invoice
Remove in C_INVOICE POST, "OR (v_DocStatus='CO' AND v_DocAction='RE')" in the following line https://code.openbravo.com/erp/devel/pi/rev/c514d884966b#l1.20 [^]
No tags attached.
related to defect 0009325 closed areefbasha The invoices without lines are not posted and you get an error in the packground process that stop the process 
depends on backport 00117512.40MP14 closed harikrishnan You can't reactivate an invoice created in a last version 
Issue History
2009-12-04 13:23networkbNew Issue
2009-12-04 13:23networkbAssigned To => rafaroda
2009-12-07 19:43psarobeNote Added: 0022500
2009-12-07 19:43psarobeStatusnew => feedback
2009-12-09 09:20networkbNote Added: 0022563
2009-12-09 15:54networkbStatusfeedback => new
2009-12-11 18:04psarobeStatusnew => scheduled
2009-12-11 18:04psarobefix_in_branch => pi
2009-12-11 18:08rafarodaRelationship addedrelated to 0009325
2009-12-11 18:12rafarodafix_in_branchpi =>
2009-12-11 18:12rafarodaSteps to Reproduce Updated
2009-12-15 12:31rafarodaPriorityimmediate => urgent
2010-01-11 08:20harikrishnanAssigned Torafaroda => harikrishnan
2010-01-11 09:26hgbotCheckin
2010-01-11 09:26hgbotNote Added: 0023295
2010-01-11 09:26hgbotStatusscheduled => resolved
2010-01-11 09:26hgbotResolutionopen => fixed
2010-01-11 09:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/667964520ba7bdec2e17326a53713c7500bca6bb [^]
2010-01-19 01:41hudsonbotCheckin
2010-01-19 01:41hudsonbotNote Added: 0023540
2010-02-03 19:06sureshbabuNote Added: 0023933
2010-02-04 09:43harikrishnanNote Added: 0023941
2010-02-18 05:42arunkumarNote Added: 0024553
2010-02-18 05:42arunkumarStatusresolved => closed
2010-02-18 05:42arunkumarFixed in Version => 2.50MP12
2010-02-19 00:00anonymoussf_bug_id0 =>
2010-03-10 18:28anonymoussf_bug_id => 2967958

Notes
(0022500)
psarobe   
2009-12-07 19:43   
What do you suggest?
(0022563)
networkb   
2009-12-09 09:20   
We suggest to can reactivate invoices without lines
(0023295)
hgbot   
2010-01-11 09:26   
Repository: erp/devel/pi
Changeset: 667964520ba7bdec2e17326a53713c7500bca6bb
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Mon Jan 11 13:55:27 2010 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/667964520ba7bdec2e17326a53713c7500bca6bb [^]

Fixes Issue 11645: You can't reactivate an invoice created in a last version.

---
M src-db/database/model/functions/C_INVOICE_POST.xml
---
(0023540)
hudsonbot   
2010-01-19 01:41   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/667964520ba7 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/7f3a35240cf9 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/obx/core/OpenbravoERP-2.50CI.15846.obx [^]
(0023933)
sureshbabu   
2010-02-03 19:06   
@Hari,

Please provide us the detail steps to test the fix. Since Arun already retested and finds some difficulty in reproducing the issue.
(0023941)
harikrishnan   
2010-02-04 09:43   
Steps To Test.

*Take a workspace using the command.
  ==> hg clone -r 2.40MP3 https://code.openbravo.com/erp/stable/2.40/ [^]
*Keep the application in working condition.
*Go to sales Management and create and complete a sales order with out lines.
*Then go to the workspace and use the ant command
    ==>hg up 2.40MP11
*And do compile.development ant task.
*Login to the application,now the sales order created previously with out lines should be reactivated.
(0024553)
arunkumar   
2010-02-18 05:42   
The fix is done in C_INVOICE_POST.xml. Tested.