Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011460Openbravo ERP09. Financial managementpublic2009-11-23 12:402010-10-14 00:00
networkb 
vmromanos 
normaltrivialalways
closedfixed 
5
2.50MP8 
2.50MP23 
Core
No
0011460: Unpost an Invoice in a Period Control closed
When you click 'Unpost' and set 'Delete accounting entry' in an Invoice when its Period Control is closed, appears this message:

      
Process completed successfully
Updated = 0, Deleted = 0
-As Openbravo Admin go to Sales Management || Transactions || Sales Invoice
-Create a new record.
   -Invoice Date: 03-01-2006
   -Accounting Date: 03-01-2009
-Save and go to Lines
-Create a new record.
-Go to the header and complete
-Click Post

-Go to Financial Management || Accounting || Transactions || Open/Close Period Control
-Create a new record.
    -Year: 2006
    -Until Period: Jan-06
    -Period Action: Close Period
-Save and click 'Open/Close All'

-Go back to de Sales Invoice created.
-Click Unpost and set Delete accounting entry

No tags attached.
Issue History
2009-11-23 12:40networkbNew Issue
2009-11-23 12:40networkbAssigned To => rafaroda
2009-12-07 17:25psarobeNote Added: 0022486
2009-12-07 17:25psarobeStatusnew => feedback
2009-12-07 17:30networkbNote Added: 0022487
2009-12-07 17:30networkbStatusfeedback => new
2009-12-07 19:17psarobeStatusnew => scheduled
2009-12-07 19:17psarobeAssigned Torafaroda => dalsasua
2009-12-07 19:17psarobefix_in_branch => pi
2009-12-09 08:49rafarodaPriorityimmediate => normal
2009-12-09 08:49rafarodafix_in_branchpi =>
2010-09-27 10:03vmromanosAssigned Todalsasua => vmromanos
2010-09-27 15:10hgbotCheckin
2010-09-27 15:10hgbotNote Added: 0031387
2010-09-27 15:10hgbotStatusscheduled => resolved
2010-09-27 15:10hgbotResolutionopen => fixed
2010-09-27 15:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/f2c30fd7b2f81ae82158c5090dab2b5afa8463b7 [^]
2010-09-29 11:57hudsonbotCheckin
2010-09-29 11:57hudsonbotNote Added: 0031469
2010-10-13 12:24psarobeNote Added: 0031802
2010-10-13 12:24psarobeStatusresolved => closed
2010-10-13 12:24psarobeFixed in Version => 2.50MP23
2010-10-14 00:00anonymoussf_bug_id0 => 3086960

Notes
(0022486)
psarobe   
2009-12-07 17:25   
Which is the solution you proposed?

Period closed message?
(0022487)
networkb   
2009-12-07 17:30   
The message should show something like 'It is not possible to unpost a document in a closed period'
(0031387)
hgbot   
2010-09-27 15:10   
Repository: erp/devel/pi
Changeset: f2c30fd7b2f81ae82158c5090dab2b5afa8463b7
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Mon Sep 27 10:13:22 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/f2c30fd7b2f81ae82158c5090dab2b5afa8463b7 [^]

Fixed bug 11460: Unpost a document in a closed period

Added a check in the FACT_ACCT_RESET process that is run
only when the user manually tries to unpost a document. If the
period is closed, an error is shown.

However, the global 'Reset accounting' process will not show any error in
case it finds any document in a closed period.

---
M src-db/database/model/functions/FACT_ACCT_RESET.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0031469)
hudsonbot   
2010-09-29 11:57   
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/f2c30fd7b2f8 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/51c2c2967221 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18452.obx [^]
(0031802)
psarobe   
2010-10-13 12:24   
Tested working fine