WIP timesheet REST API

This commit is contained in:
ralf
2024-02-01 22:16:36 +02:00
parent 4fcd761f0c
commit ca443060f4
8 changed files with 358 additions and 410 deletions

View File

@ -151,6 +151,7 @@ class timesheet_bo extends Api\Storage
* Name of the timesheet table storing custom fields
*/
const EXTRA_TABLE = 'egw_timesheet_extra';
const TABLE = 'egw_timesheet';
/**
* Columns to search when user does a text search
@ -166,7 +167,7 @@ class timesheet_bo extends Api\Storage
function __construct()
{
parent::__construct(TIMESHEET_APP,'egw_timesheet',self::EXTRA_TABLE,'','ts_extra_name','ts_extra_value','ts_id');
parent::__construct(TIMESHEET_APP,self::TABLE,self::EXTRA_TABLE,'','ts_extra_name','ts_extra_value','ts_id');
$this->config_data = Api\Config::read(TIMESHEET_APP);
$this->quantity_sum = $this->config_data['quantity_sum'] == 'true';