author Víctor Martínez Romanos <>
Thu, 07 May 2015 12:11:39 +0200
changeset 26684 2311966afd7b
parent 24250 72011c9d701f
child 27134 a74e6f6207c1
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: 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.
<?xml version="1.0" encoding="UTF-8"?>
	<classpathentry combineaccessrules="false" kind="src" path="/openbravo"/>
	<classpathentry excluding="build/**" kind="src" path="src"/>
	<classpathentry kind="lib" path="/openbravo/lib/test/junit.jar"/>
	<classpathentry kind="lib" path="/openbravo/lib/test/hamcrest-all-1.3.jar"/>
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
	<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container/openbravo"/>
	<classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"/>
	<classpathentry combineaccessrules="false" kind="src" path="/OpenbravoWAD"/>
	<classpathentry kind="output" path="build/classes"/>