Ok… Picture the current TimeConditions module.
Instead of just having ‘Added’ Time conditions, have 2 extra Tables
accessible via say a clickable link/button on the top right hand corner
(or there abouts… distinctly seperate from ‘custom’ TimeConditions).
These could be called “Standard Holidays” and say “Night Mode”.
Clicking either button causes a new ‘page’ to be displayed that contains
essentially a table that has at least the following columns: “Date” (Say
in DD/MM or MM/DD), Time Condition Starts, Time Condition Ends,
Destination Context/IVR/Extensions, Active (Which is a radio button for
Active/Deactive). This is a table that you can just keep adding rows to,
building up a database of “Common” holidays. This ends up producing
eventually some sort of output in the extensions_additional.conf that
looks something like (im ad-libbing here…)
[holiday-times]
include => ivr-3|||1|Jan
include => ivr-3|||2|Jan
include => ivr-3|||26|Jan
include => ivr-3|||20|Mar
include => ivr-3|||14|Apr
include => ivr-3|||17|Apr
include => ivr-3|||25|Apr
include => ivr-3|||12|Jun
include => ivr-3|20:00-07:59|mon-fri||
include => ivr-3|13:00-08:59|sat||
include => TimeConditions
This context would get called BEFORE the normal TimeConditions - allowing you to just ‘override’ on a date/time basis without defining heaps of TimeConditions.
NightMode is also important, and could be handled exactly the same, the only difference being, NightMode should probably be included After [Holiday-Times] but before [TimeConditions].
Nightmode would be a simplier table, listing Days of the week, “Day Times” (i.e, open hours), “Night Times” (i.e, closed) and an option to manually override the current setting. This is much similar to the old AMP style of handling it.
Doing things this way is ideal, because it lets people still maintain complicated options if you need those, but gives a very simple setup for “99%” of people, who just need to worry about “When are we open, when are we closed…”
Does that make more sense ???
zUlisse wrote:
[quote] what do you mean?
Amportal-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-devel
[/quote]
Amportal-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amportal-devel
Post generated using Mail2Forum (http://www.mail2forum.com)