1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-15 15:42:51 +01:00
invoiceninja/app/Import/Definitions/TaskMap.php

66 lines
1.8 KiB
PHP
Raw Normal View History

2023-11-14 03:24:51 +01:00
<?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',
2023-11-20 05:31:40 +01:00
7 => 'task.billable',
2023-11-14 03:24:51 +01:00
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',
2024-02-09 04:21:19 +01:00
15 => 'task.custom_value2',
16 => 'task.custom_value3',
17 => 'task.custom_value4',
2023-11-14 03:24:51 +01:00
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',
];
}
}