Thanks for answering everyone.

David, thanks for the advice.
I checked the entities you mentioned WorkEffort, RecurrenceInfo, and
RecurrenceRule, but cannot figure it our how to achieve the same
functionality.

It is possible to store the promotion hours in WorkEffort entity
(actualStartDate - actualCompletionDate), and assign a recurrenceInfoId
to it. Then the hours could be active for example every day, or every
7th day (like every Sunday), but how can I choose only the weekdays, or
how to set up different time range for every day of the week?

I think this will be needed also by manufacturing application(when
deprecating TechDataCalendarWeek), which is the only one place where
TechDataCalendarWeek entity is used.

Can someone answer to this question:
Looking at RecurrenceInfo and RecurrenceRule entities I got confused.
RecurrenceInfo entity has exceptionRuleId, recurrenceRuleId fields, so
it can have ONLY ONE recurrenceRule and ONLY ONE exception
recurrenceRule.

But in RecurrenceInfo.java there are lists for storing exceptionRules
and recurrenceRules:

        // Get the recurrence rules objects
            rRulesList = new ArrayList<RecurrenceRule>();
            for (GenericValue value: info.getRelated("RecurrenceRule")){
                rRulesList.add(new RecurrenceRule(value));
            }

        // Get the exception rules objects
            eRulesList = new ArrayList<RecurrenceRule>();
            for (GenericValue value:
info.getRelated("ExceptionRecurrenceRule")){
                eRulesList.add(new RecurrenceRule(value));
            }

Is it possible one RecurrenceInfo to have many RecurrenceRules and many
exception RecurrenceRules? May be something is wrong with the entity
definitions?

Thanks,
Bilgin

Reply via email to