Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0010512Openbravo ERP09. Financial managementpublic2009-09-03 10:562009-09-11 13:44
networkb 
vmromanos 
immediatemajoralways
closedfixed 
5
2.40MP4 
2.40MP92.40MP9 
Core
No
0010512: It is not possible to unpost a GL entry when a period is duplicated (one is open and one is closed)
A fiscal year is created within 12 periods (from January to December). But an extra period is created in the same dates as December, for example.
If Dec-09 period is open, and the new one is closed, it is not possible to unpost a GL entry (It is possible to post it, but not unpost it).

Although, the open period (Dec-09) is selected in all combos in GL entry, it is not possible to unpost it.

The application shows the following message:

      
Process completed successfully
Updated = 0, Deleted = 0

It has been tested in 2.50 and 2.40, and it happens the same.
For 2.50:

Create a new fiscal year (2009). Create its periods using "Create periods" buttom.
Go to Financial Management > Accounting > Transactions > Open/close periods.
Select an organization, the previous year and Dec-09 as Period. Select as Period Action, "Open period". Save it, and process.

Go back to Fiscal year window, and for the same year(2009), create a new period (From date 01-12-2009, To date 31-12-2009).

Go to Financial Management > Accounting > Transactions > GL Entry. Create a new one. Use as Accounting/Transaction date, 02-12-2009. Select Dec-09 period. Save it.
Create its Header. Select same period, and same dates.
Create two lines in Lines tab with amount, 100. One line with 100 in Foreign Currency Debit and the other record in Foreign Currency Credit. Select any Accounting Combination.

Back to Header. Post it. And now to unpost it. It returns this message:
Process completed successfully
Updated = 0, Deleted = 0

For 2.40:
Create a new fiscal year (2009) and its periods, using "Create periods" buttom.
Open Dec-09 period.
Create a new period using as dates, from 01-12-2009 to 31-12-2009. Select as action to GL Entry "Never open".

Create a new GL entry using the same steps as 2.50
*Do not allow to create two periods in the same dates.

*Show a correct message
No tags attached.
blocks defect 00104722.40MP9 closed vmromanos It is not possible to unpost a GL entry when a period is duplicated (one is open and one is closed) 
Issue History
2009-09-08 10:11rafarodaTypedefect => backport
2009-09-08 10:11rafarodafix_in_branch => 2.40
2009-09-08 12:58hgbotCheckin
2009-09-08 12:58hgbotNote Added: 0019525
2009-09-08 12:58hgbotStatusscheduled => resolved
2009-09-08 12:58hgbotResolutionopen => fixed
2009-09-08 12:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/78247232191d293d6980d66fc6eaed20f75ff989 [^]
2009-09-09 15:27hgbotCheckin
2009-09-09 15:27hgbotNote Added: 0019614
2009-09-09 15:27hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/stable/2.40/rev/78247232191d293d6980d66fc6eaed20f75ff989 [^] => http://code.openbravo.com/erp/stable/2.40_pageddatagrid/rev/78247232191d293d6980d66fc6eaed20f75ff989 [^]
2009-09-11 13:44psarobeStatusresolved => closed
2009-09-11 13:44psarobeFixed in Version => 2.40MP9

Notes
(0019525)
hgbot   
2009-09-08 12:58   
Repository: erp/stable/2.40
Changeset: 78247232191d293d6980d66fc6eaed20f75ff989
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Sep 08 12:57:14 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40/rev/78247232191d293d6980d66fc6eaed20f75ff989 [^]

Fixed bug 10512: Do not allow to create two periods in the same dates

---
M src-db/database/model/tables/C_PERIOD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0019614)
hgbot   
2009-09-09 15:27   
Repository: erp/stable/2.40_pageddatagrid
Changeset: 78247232191d293d6980d66fc6eaed20f75ff989
Author: Víctor Martínez Romanos <victor.martinez <at> openbravo.com>
Date: Tue Sep 08 12:57:14 2009 +0200
URL: http://code.openbravo.com/erp/stable/2.40_pageddatagrid/rev/78247232191d293d6980d66fc6eaed20f75ff989 [^]

Fixed bug 10512: Do not allow to create two periods in the same dates

---
M src-db/database/model/tables/C_PERIOD.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---