1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 16:13:20 +01:00
invoiceninja/app/Import/Definitions/VendorMap.php
2023-10-26 15:06:13 +11:00

87 lines
2.6 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 VendorMap
{
public static function importable()
{
return [
0 => 'vendor.name',
1 => 'vendor.phone',
2 => 'vendor.id_number',
3 => 'vendor.vat_number',
4 => 'vendor.website',
5 => 'vendor.first_name',
6 => 'vendor.last_name',
7 => 'vendor.email',
8 => 'vendor.currency_id',
9 => 'vendor.public_notes',
10 => 'vendor.private_notes',
11 => 'vendor.address1',
12 => 'vendor.address2',
13 => 'vendor.city',
14 => 'vendor.state',
15 => 'vendor.postal_code',
16 => 'vendor.country_id',
17 => 'vendor.custom_value1',
18 => 'vendor.custom_value2',
19 => 'vendor.custom_value3',
20 => 'vendor.custom_value4',
21 => 'contact.first_name',
22 => 'contact.last_name',
23 => 'contact.email',
24 => 'contact.phone',
25 => 'contact.custom_value1',
26 => 'contact.custom_value2',
27 => 'contact.custom_value3',
28 => 'contact.custom_value4',
];
}
public static function import_keys()
{
return [
0 => 'texts.name',
1 => 'texts.phone',
2 => 'texts.id_number',
3 => 'texts.vat_number',
4 => 'texts.website',
5 => 'texts.first_name',
6 => 'texts.last_name',
7 => 'texts.email',
8 => 'texts.currency',
9 => 'texts.public_notes',
10 => 'texts.private_notes',
11 => 'texts.address1',
12 => 'texts.address2',
13 => 'texts.city',
14 => 'texts.state',
15 => 'texts.postal_code',
16 => 'texts.country',
17 => 'texts.custom_value',
18 => 'texts.custom_value',
19 => 'texts.custom_value',
20 => 'texts.custom_value',
21 => 'texts.first_name',
22 => 'texts.last_name',
23 => 'texts.email',
24 => 'texts.phone',
25 => 'texts.custom_value',
26 => 'texts.custom_value',
27 => 'texts.custom_value',
28 => 'texts.custom_value',
];
}
}