src-wad/log4j.lcf
author Víctor Martínez Romanos <victor.martinez@openbravo.com>
Thu, 07 May 2015 12:11:39 +0200
changeset 26684 2311966afd7b
parent 9085 79e55dfc8af0
permissions -rw-r--r--
Fixed bug 29809: Impossible to create several calendars for the same organization

Two pieces of code were affected by this bug:
PeriodEventHandler.java: EntityPersistenceEventObserver in charge of checking overlap in manual inserts/updates (or any java process) in c_period table
C_YEARPERIODS: db function associated to the create periods process inside the Fiscal Calendar | Year tab. It also verifies the periods don't overlap other periods.

The fix consists in checking that there is no date overlap per calendar. Before this fix the calendar wasn't taken into account, so it was not possible to define several calendars for the same organization with the same periods.
#*************************************************************************
#* The contents of this file are subject to the Openbravo  Public  License
#* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
#* Version 1.1  with a permitted attribution clause; you may not  use this
#* file except in compliance with the License. You  may  obtain  a copy of
#* the License at http://www.openbravo.com/legal/license.html 
#* Software distributed under the License  is  distributed  on  an "AS IS"
#* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
#* License for the specific  language  governing  rights  and  limitations
#* under the License. 
#* The Original Code is Openbravo ERP. 
#* The Initial Developer of the Original Code is Openbravo SLU 
#* All portions are Copyright (C) 2001-2006 Openbravo SLU 
#* All Rights Reserved. 
#* Contributor(s):  ______________________________________.
#************************************************************************

log4j.rootCategory=WARN, A1

# A1 is set to be a ConsoleAppender. 
log4j.appender.A1=org.apache.log4j.ConsoleAppender

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n

#log4j.category.org.openbravo.data.Sqlc=DEBUG
log4j.category.org.openbravo.base.ConnectionProvider=INFO
log4j.category.org.openbravo.data.Sqlc=INFO
log4j.category.org.openbravo.wad=DEBUG
log4j.category.org.openbravo.wad.WadUtility=WARN