<?php
if(!isset($config->leave)) $config->leave = new stdclass();
$config->leave->require = new stdclass();
$config->leave->require->create           = 'year,begin,end,type,hours';
$config->leave->require->edit             = 'year,begin,end,type,hours';
$config->leave->require->review           = 'comment';
$config->leave->require->back             = 'backDate';
$config->leave->require->reviewconversion = 'reason';
$config->leave->require->grantconversion  = 'desc';

$config->leave->editor = new stdclass();
$config->leave->editor->view   = array('id' => 'lastComment', 'tools' => 'simple');
$config->leave->editor->review = array('id' => 'comment',     'tools' => 'simple');

$config->leave->minHours   = 0;
$config->leave->multiple   = 1;
$config->leave->paidList   = array('annual', 'prenatalcheck', 'marry', 'meternity', 'paternity', 'breastfeeding', 'bereavement');
$config->leave->noPaidList = array('affairs', 'sick');

$config->leave->list = new stdclass();
$config->leave->list->exportFields = 'id, createdBy, dept, type, begin, end, hours, desc, status, reviewedBy';
