1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00
invoiceninja/app/Import/Definitions/ProductMap.php
2020-12-18 11:31:27 +11:00

60 lines
1.6 KiB
PHP

<?php
/**
* client Ninja (https://clientninja.com).
*
* @link https://github.com/clientninja/clientninja source repository
*
* @copyright Copyright (c) 2020. client Ninja LLC (https://clientninja.com)
*
* @license https://opensource.org/licenses/AAL
*/
namespace App\Import\Definitions;
class ProductMap
{
public static function importable()
{
return [
0 => 'product.product_key',
1 => 'product.notes',
2 => 'product.cost',
3 => 'product.price',
4 => 'product.quantity',
5 => 'product.tax_name1',
6 => 'product.tax_rate1',
7 => 'product.tax_name2',
8 => 'product.tax_rate2',
9 => 'product.tax_name3',
10 => 'product.tax_rate3',
11 => 'product.custom_value1',
12 => 'product.custom_value2',
13 => 'product.custom_value3',
14 => 'product.custom_value4',
15 => 'product.user_id',
];
}
public static function import_keys()
{
return [
0 => 'texts.item',
1 => 'texts.notes',
2 => 'texts.cost',
3 => 'texts.price',
4 => 'texts.quantity',
5 => 'texts.tax_name',
6 => 'texts.tax_rate',
7 => 'texts.tax_name',
8 => 'texts.tax_rate',
9 => 'texts.tax_name',
10 => 'texts.tax_rate',
11 => 'texts.custom_value',
12 => 'texts.custom_value',
13 => 'texts.custom_value',
14 => 'texts.custom_value',
15 => 'texts.user',
];
}
}