1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 07:02:34 +01:00
invoiceninja/app/Import/Definitions/TaskMap.php
2023-11-14 13:24:51 +11:00

67 lines
1.8 KiB
PHP

<?php
/**
* Invoice Ninja (https://invoiceninja.com).
*
* @link https://github.com/invoiceninja/invoiceninja source repository
*
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Import\Definitions;
class TaskMap
{
public static function importable()
{
return [
0 => 'task.number',
1 => 'task.user_id',
2 => 'task.rate',
3 => 'project.name',
4 => 'client.name',
5 => 'client.email',
6 => 'task.description',
7 => 'task.is_billable',
8 => 'task.start_date',
9 => 'task.end_date',
10 => 'task.start_time',
11 => 'task.end_time',
12 => 'task.duration',
13 => 'task.status',
14 => 'task.custom_value1',
15 => 'task.custom_value1',
16 => 'task.custom_value1',
17 => 'task.custom_value1',
18 => 'task.notes',
];
}
public static function import_keys()
{
return [
0 => 'texts.task_number',
1 => 'texts.user',
2 => 'texts.task_rate',
3 => 'texts.project',
4 => 'texts.client',
5 => 'texts.client_email',
6 => 'texts.description',
7 => 'texts.billable',
8 => 'texts.start_date',
9 => 'texts.end_date',
10 => 'texts.start_time',
11 => 'texts.end_time',
12 => 'texts.duration',
13 => 'texts.status',
14 => 'texts.task1',
15 => 'texts.task2',
16 => 'texts.task3',
17 => 'texts.task4',
18 => 'texts.notes',
];
}
}