Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011157Openbravo ERP09. Financial managementpublic2009-10-28 11:552009-11-19 00:00
networkb 
vinothbabu 
urgentmajoralways
closedfixed 
5
2.50MP7 
2.50MP92.50MP9 
Core
No
0011157: callout SL_Journal_Period takes C_Calendar_ID from AD_ClientInfo instead of from
In 2.50 you can now define the calendar for organization's level (instead of entity level as before) but this callout continue taking calendar information from entity instead of from organization.
1. Create new organization "Legal with accounting"
2. Financial Management || Accounting || Setup || Fiscal Calendar || Calendar : create new calendar for your organization.
3. Financial Management || Accounting || Setup || Fiscal Calendar || Calendar >> Year : create year 2009 for your organization's calendar
4. Financial Management || Accounting || Setup || Fiscal Calendar || Calendar >> Year >> Period : create period for your organization's calendar with
name=mes1 ; starting date=01-01-2009 ; end date=31-01-2009 ; type=standard calendar
5. General Setup || Enterprise || Organization || Organization : check allow period control and set your calendar to your organization
6. General Setup || Enterprise || Organization || Organization >> Org Schema : create new record
7. Come back to General Setup || Enterprise || Organization || Organization and press "set as ready"
8. Financial Management || Accounting || Transactions || G/L Journal || Batch : create new record for your organization and set accounting date=15-01-2009
(Realize that Period set is "Jan-09" instead of "mes1")
9. Financial Management || Accounting || Transactions || G/L Journal || Batch >> Header : create nwe record for your batch setting accounting date=15-01-2009.
Realize that SL_Journal_Period callout set "Jan-09" as period (which belongs to the calendar defined for * organization) instead of "mes1" (the period defined for your organization).
You can check it by clicking in "Period" link
In this select change table ad_clientinfo by ad_org:

SELECT C_Period_ID
FROM C_Period
WHERE C_Year_ID IN
(SELECT C_Year_ID FROM C_Year WHERE C_Calendar_ID =
(SELECT C_Calendar_ID FROM AD_ClientInfo WHERE AD_Client_ID=?))
AND to_date(?) BETWEEN StartDate AND EndDate
AND PeriodType='S'
AND exists (select 1 from c_periodcontrol where c_periodcontrol.c_period_id =
c_period.c_period_id
AND periodstatus = 'O')
No tags attached.
related to defect 00111582.50MP9 closed vmromanos Method selectLinesPeriodClosed from DocLineBank_data.xsql takes C_Calendar_ID from AD_ClientInfo instead of from AD_Org 
Issue History
2009-10-28 11:55networkbNew Issue
2009-10-28 11:55networkbAssigned To => rafaroda
2009-10-28 14:35rafarodaNote Added: 0021446
2009-10-28 14:35rafarodaAssigned Torafaroda => dalsasua
2009-10-28 14:35rafarodaPriorityimmediate => urgent
2009-10-28 14:35rafarodaStatusnew => scheduled
2009-10-28 14:37rafarodaRelationship addedrelated to 0011158
2009-10-29 10:14networkbNote Added: 0021461
2009-10-29 10:14networkbProposed Solution updated
2009-11-05 12:33vmromanosNote Added: 0021605
2009-11-12 06:47rajagopalAssigned Todalsasua => vinothbabu
2009-11-17 09:17hgbotCheckin
2009-11-17 09:17hgbotNote Added: 0021899
2009-11-17 09:17hgbotStatusscheduled => resolved
2009-11-17 09:17hgbotResolutionopen => fixed
2009-11-17 09:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/c39ccd238ce0098ad24377b3f430971e6bb6eb69 [^]
2009-11-18 07:23sureshbabuNote Added: 0021938
2009-11-18 07:23sureshbabuStatusresolved => closed
2009-11-18 07:23sureshbabuFixed in Version => 2.50MP9
2009-11-19 00:00anonymoussf_bug_id0 => 2900154

Notes
(0021446)
rafaroda   
2009-10-28 14:35   
Please provide proper steps to reproduce this issue.
(0021461)
networkb   
2009-10-29 10:14   
we have provided steps to reproduce
(0021605)
vmromanos   
2009-11-05 12:33   
Instead of getting the calendar directly from the organization, use the ad_org_getcalendarowner(p_organization character varying) database function
(0021899)
hgbot   
2009-11-17 09:17   
Repository: erp/devel/pi
Changeset: c39ccd238ce0098ad24377b3f430971e6bb6eb69
Author: Vinoth Babu <vinoth.babu <at> openbravo.com>
Date: Tue Nov 17 13:46:09 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/c39ccd238ce0098ad24377b3f430971e6bb6eb69 [^]

Fixes bug 11157 Callout changes SL_Journal_Period

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Journal_Period.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Journal_Period_data.xsql
---
(0021938)
sureshbabu   
2009-11-18 07:23   
Tested working fine