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

Notes
(0083316)
hgbot   
2016-01-14 18:04   
Repository: erp/backports/3.0PR16Q1
Changeset: 59e5a1cf22ceee741b482d7cee9e58bc8d39ba16
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.0PR16Q1/rev/59e5a1cf22ceee741b482d7cee9e58bc8d39ba16 [^]

Fixes Issue 31896: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
---
(0083317)
dmiguelez   
2016-01-14 18:04   
Code Review + Testing Ok