Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031898Openbravo ERP09. Financial managementpublic2016-01-11 14:142016-01-14 17:55
ngarcia 
AtulOpenbravo 
immediatemajoralways
closedfixed 
5
 
3.0PR15Q3.5 
dmiguelez
Core
Production - Confirmed Stable
2015-03-23
3.0PR15Q3
https://code.openbravo.com/erp/devel/pi/rev/908de92996757265cce434502b36adf8860d6450 [^]
No
0031898: Cannot save a G/L Journal header with the date of the adjustment period if both periods are opened
Cannot save a G/L Journal header with the date of the adjustment period if both periods are opened
As group admin role:
   Create a new year in the Fiscal Calendar window
   Create periods and select the option to create the adjustment period
   Open all periods
   Go to G/L Journal window and create a record with the date of the adjustment period (31/12)
   Create a Header with the same date. Check you cannot save the record neither if you select the common period nor the adjustment period. The following error message is shown:
      Saving failed. No valid period for this accounting date.
   
No tags attached.
blocks defect 0031860 closed AtulOpenbravo Cannot save a G/L Journal header with the date of the adjustment period if both periods are opened 
Issue History
2016-01-14 17:53dmiguelezTypedefect => backport
2016-01-14 17:53dmiguelezTarget Version => 3.0PR15Q3.5
2016-01-14 17:55hgbotCheckin
2016-01-14 17:55hgbotNote Added: 0083312
2016-01-14 17:55hgbotStatusscheduled => resolved
2016-01-14 17:55hgbotResolutionopen => fixed
2016-01-14 17:55hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3.5/rev/b83c0b450b52462e1f8677afe1f9e94ef3ecbe14 [^]
2016-01-14 17:55dmiguelezReview Assigned To => dmiguelez
2016-01-14 17:55dmiguelezNote Added: 0083313
2016-01-14 17:55dmiguelezStatusresolved => closed

Notes
(0083312)
hgbot   
2016-01-14 17:55   
Repository: erp/backports/3.0PR15Q3.5
Changeset: b83c0b450b52462e1f8677afe1f9e94ef3ecbe14
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Wed Jan 13 21:13:18 2016 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR15Q3.5/rev/b83c0b450b52462e1f8677afe1f9e94ef3ecbe14 [^]

Fixes Issue 31898:Cannot save a G/L Journal header with the date of the
adjustment period if both periods are opened

c_chk_open_period returns value more than 1 in case standard period and
adjustment period is open in which the date of GL journal is included.
<> 1 check is failed in this case so check is changed to < 1 to show
error message in case period id not available

---
M src-db/database/model/triggers/GL_JOURNAL_CHK_RESTRICT_TRG.xml
---
(0083313)
dmiguelez   
2016-01-14 17:55   
Code Review + Testing Ok