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.
juanpablo@523
     1
#*************************************************************************
juanpablo@523
     2
#* The contents of this file are subject to the Openbravo  Public  License
priya@9085
     3
#* Version  1.1  (the  "License"),  being   the  Mozilla   Public  License
juanpablo@523
     4
#* Version 1.1  with a permitted attribution clause; you may not  use this
juanpablo@523
     5
#* file except in compliance with the License. You  may  obtain  a copy of
juanpablo@523
     6
#* the License at http://www.openbravo.com/legal/license.html 
juanpablo@523
     7
#* Software distributed under the License  is  distributed  on  an "AS IS"
juanpablo@523
     8
#* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
juanpablo@523
     9
#* License for the specific  language  governing  rights  and  limitations
juanpablo@523
    10
#* under the License. 
juanpablo@523
    11
#* The Original Code is Openbravo ERP. 
ggi@6702
    12
#* The Initial Developer of the Original Code is Openbravo SLU 
ggi@6702
    13
#* All portions are Copyright (C) 2001-2006 Openbravo SLU 
juanpablo@523
    14
#* All Rights Reserved. 
juanpablo@523
    15
#* Contributor(s):  ______________________________________.
juanpablo@523
    16
#************************************************************************
juanpablo@523
    17
juanpablo@378
    18
log4j.rootCategory=WARN, A1
juanpablo@523
    19
juanpablo@378
    20
# A1 is set to be a ConsoleAppender. 
juanpablo@378
    21
log4j.appender.A1=org.apache.log4j.ConsoleAppender
juanpablo@523
    22
juanpablo@378
    23
# A1 uses PatternLayout.
juanpablo@378
    24
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
juanpablo@378
    25
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c - %m%n
juanpablo@378
    26
juanpablo@378
    27
#log4j.category.org.openbravo.data.Sqlc=DEBUG
juanpablo@378
    28
log4j.category.org.openbravo.base.ConnectionProvider=INFO
juanpablo@378
    29
log4j.category.org.openbravo.data.Sqlc=INFO
juanpablo@378
    30
log4j.category.org.openbravo.wad=DEBUG
juanpablo@378
    31
log4j.category.org.openbravo.wad.WadUtility=WARN