1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-11 21:52:35 +01:00
invoiceninja/app/Import/Definitions/BankTransactionMap.php

56 lines
1.6 KiB
PHP
Raw Normal View History

2022-10-25 01:25:04 +02:00
<?php
/**
2023-05-01 00:07:41 +02:00
* Invoice Ninja (https://invoiceninja.com).
2022-10-25 01:25:04 +02:00
*
2023-05-01 00:07:41 +02:00
* @link https://github.com/invoiceninja/invoiceninja source repository
2022-10-25 01:25:04 +02:00
*
2023-05-01 00:07:41 +02:00
* @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com)
2022-10-25 01:25:04 +02:00
*
* @license https://www.elastic.co/licensing/elastic-license
*/
namespace App\Import\Definitions;
class BankTransactionMap
{
public static function importable()
{
return [
2022-11-06 07:25:29 +01:00
0 => 'transaction.transaction_id',
1 => 'transaction.amount',
2 => 'transaction.currency',
3 => 'transaction.account_type',
2023-06-25 05:15:15 +02:00
4 => 'transaction.category',
2022-11-06 07:25:29 +01:00
5 => 'transaction.category_type',
6 => 'transaction.date',
2023-06-25 05:15:15 +02:00
7 => 'transaction.bank_account',
2022-11-06 07:25:29 +01:00
8 => 'transaction.description',
9 => 'transaction.base_type',
2023-06-25 05:15:15 +02:00
10 => 'transaction.payment_type_Credit',
11 => 'transaction.payment_type_Debit',
2024-01-13 08:35:34 +01:00
12 => 'transaction.participant',
13 => 'transaction.participant_name',
2022-10-25 01:25:04 +02:00
];
}
public static function import_keys()
{
return [
0 => 'texts.transaction_id',
1 => 'texts.amount',
2 => 'texts.currency',
3 => 'texts.account_type',
4 => 'texts.category_id',
5 => 'texts.category_type',
6 => 'texts.date',
7 => 'texts.bank_account_id',
8 => 'texts.description',
9 => 'texts.type',
2023-06-25 05:15:15 +02:00
10 => 'transaction.credit',
11 => 'transaction.debit',
2024-01-13 08:35:34 +01:00
12 => 'transaction.participant',
13 => 'transaction.participant_name',
2022-10-25 01:25:04 +02:00
];
}
2023-02-16 02:36:09 +01:00
}