Added Agent Time-Off Interface admin utility page

git-svn-id: svn://192.168.202.10@3823 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2024-04-18 23:12:31 +00:00
parent b9ac05256b
commit d9e139ae8d
4 changed files with 1153 additions and 3 deletions
+19
View File
@@ -2701,3 +2701,22 @@ UPDATE system_settings SET db_schema_version='1711',db_schema_update_date=NOW()
ALTER TABLE vicidial_campaigns ADD script_tab_height SMALLINT(5) default '0';
UPDATE system_settings SET db_schema_version='1712',db_schema_update_date=NOW() where db_schema_version < 1712;
CREATE TABLE vicidial_timeoff_log (
vtl_id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
user VARCHAR(20) DEFAULT NULL,
full_name VARCHAR(100) DEFAULT NULL,
timeoff_month CHAR(7) DEFAULT NULL,
timeoff_type VARCHAR(10) DEFAULT NULL,
hours DECIMAL(5,2) unsigned DEFAULT NULL,
entry_date DATETIME DEFAULT NULL,
modify_date TIMESTAMP NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
entered_by VARCHAR(20) DEFAULT NULL,
last_modified_by VARCHAR(20) DEFAULT NULL,
PRIMARY KEY (vtl_id),
UNIQUE KEY vicidial_timeoff_log_agent_month_key (user,timeoff_month,timeoff_type)
);
INSERT INTO vicidial_settings_containers VALUES ('VICIDIAL_TIMEOFF_SETTINGS','Settings for time-off admin utility','OTHER','---ALL---','; Comma-delimited time-off codes - MANDATORY, must have at least one defined. \r\n; Default is \'VAC\' for vacation\r\ntimeoff_types => VAC\r\n\r\n; optional, if set to \'1\' will show all viewable agents, even ones with no \r\n; time off for month. Default is 0\r\ndisplay_all_agents => 0\r\n\r\n; optional, used to filter users displayed, in addition to user_group \r\n; permissions\r\nuser_filter_SQL => \r\n\r\n; optional, uses columns from vicidial_users table. Defaults to \r\n; full_name asc, user asc if commented out or non-existent\r\n; sort_SQL => full_name asc, user asc\r\n\r\n; include custom coding for misc download coding where \"custom_download\" \r\n; marked in agent_timeoff_script.php - DO NOT USE WITHOUT CODING KNOWLEDGE\r\n; set to \'1\' to activate\r\ncustom_download => 0');
UPDATE system_settings SET db_schema_version='1713',db_schema_update_date=NOW() where db_schema_version < 1713;