Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015570Openbravo ERP09. Financial managementpublic2011-01-04 09:062011-03-23 00:00
malsasua 
AinhoaPagola 
highminoralways
closedfixed 
20Community Appliance
2.50MP25 
2.50MP273.0RC5 
Core
No
0015570: it is not possible delete a period
If you create a new year, and you create new periods, after, you can not delete them
. Financial Management || Accounting || Setup || Fiscal Calendar || Calendar >> Year
 . new record 2011
 . run process "create periods"

No tags attached.
depends on backport 00163242.50MP27 closed AinhoaPagola it is not possible delete a period 
Issue History
2011-01-04 09:06malsasuaNew Issue
2011-01-04 09:06malsasuaAssigned To => dalsasua
2011-01-04 09:06malsasuaModules => Core
2011-02-17 16:50dalsasuaNote Added: 0034249
2011-03-16 11:49AinhoaPagolaAssigned Todalsasua => AinhoaPagola
2011-03-16 11:49AinhoaPagolaStatusnew => scheduled
2011-03-16 13:10AinhoaPagolaStatusscheduled => acknowledged
2011-03-16 13:10AinhoaPagolaStatusacknowledged => scheduled
2011-03-16 13:10AinhoaPagolafix_in_branch => pi
2011-03-21 11:05hgbotCheckin
2011-03-21 11:05hgbotNote Added: 0035080
2011-03-21 11:05hgbotStatusscheduled => resolved
2011-03-21 11:05hgbotResolutionopen => fixed
2011-03-21 11:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c3569eb5762ac7bb543e3da18080f98db0eb5abb [^]
2011-03-22 10:32malsasuaNote Added: 0035129
2011-03-22 10:32malsasuaStatusresolved => closed
2011-03-22 10:32malsasuaFixed in Version => 3.0RC5
2011-03-23 00:00anonymoussf_bug_id0 => 3235744

Notes
(0034249)
dalsasua   
2011-02-17 16:50   
Issue is that the c_period_control table entries (created by the trigger) references the c_period entries user wants to delete. Solution can be that the trigger also tries to delete entries c_period_control and c_period_control_log. If there exists a reference (from fact_acct, for example, or from a document) to the period, it will not be possible to delete it.
(0035080)
hgbot   
2011-03-21 11:05   
Repository: erp/devel/pi
Changeset: c3569eb5762ac7bb543e3da18080f98db0eb5abb
Author: Ainhoa Pagola <ainhoa.pagola <at> openbravo.com>
Date: Thu Mar 17 10:33:26 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/c3569eb5762ac7bb543e3da18080f98db0eb5abb [^]

Fixes issue 0015570. Periods can be deleted.

---
M src-db/database/model/triggers/C_PERIOD_TRG2.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0035129)
malsasua   
2011-03-22 10:32   
it works fine. the period can be deleted if there are not documents posted in it.