Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0031897Openbravo ERP09. Financial managementpublic2016-01-11 14:142016-01-14 18:03
ngarcia 
AtulOpenbravo 
immediatemajoralways
closedfixed 
5
 
3.0PR15Q4.2 
dmiguelez
Core
Production - Confirmed Stable
2015-03-23
3.0PR15Q3
https://code.openbravo.com/erp/devel/pi/rev/908de92996757265cce434502b36adf8860d6450 [^]
No
0031897: 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.0PR15Q4.2
2016-01-14 18:02hgbotCheckin
2016-01-14 18:02hgbotNote Added: 0083314
2016-01-14 18:02hgbotStatusscheduled => resolved
2016-01-14 18:02hgbotResolutionopen => fixed
2016-01-14 18:02hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q4.2/rev/b599d94e492b624ac34887992558fb795356854c [^]
2016-01-14 18:03dmiguelezReview Assigned To => dmiguelez
2016-01-14 18:03dmiguelezNote Added: 0083315
2016-01-14 18:03dmiguelezStatusresolved => closed

Notes
(0083314)
hgbot   
2016-01-14 18:02   
Repository: erp/backports/3.0PR15Q4.2
Changeset: b599d94e492b624ac34887992558fb795356854c
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.0PR15Q4.2/rev/b599d94e492b624ac34887992558fb795356854c [^]

Fixes Issue 31897: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
---
(0083315)
dmiguelez   
2016-01-14 18:03   
Code Review + Testing Ok