mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 02:54:36 -04:00
change debitor to participant
This commit is contained in:
parent
1e36551917
commit
c3ff64a0e6
@ -105,8 +105,8 @@ class TransactionTransformer implements BankRevenueInterface
|
||||
'category_type' => array_key_exists('additionalInformation', $transaction) ? $transaction["additionalInformation"] : '', // TODO: institution specific keys like: GUTSCHRIFT, ABSCHLUSS, MONATSABSCHLUSS etc
|
||||
'date' => $transaction["bookingDate"],
|
||||
'description' => $description,
|
||||
'debitor' => array_key_exists('debtorAccount', $transaction) && array_key_exists('iban', $transaction["debtorAccount"]) ? $transaction['debtorAccount']['iban'] : null,
|
||||
'debitor_name' => array_key_exists('debtorName', $transaction) ? $transaction['debtorName'] : null,
|
||||
'participant' => array_key_exists('debtorAccount', $transaction) && array_key_exists('iban', $transaction["debtorAccount"]) ? $transaction['debtorAccount']['iban'] : null,
|
||||
'participant_name' => array_key_exists('debtorName', $transaction) ? $transaction['debtorName'] : null,
|
||||
'base_type' => (int) $transaction["transactionAmount"]["amount"] <= 0 ? 'DEBIT' : 'CREDIT',
|
||||
];
|
||||
|
||||
|
@ -34,8 +34,8 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
||||
* @property string|null $date
|
||||
* @property int $bank_account_id
|
||||
* @property string|null $description
|
||||
* @property string|null $debitor
|
||||
* @property string|null $debitor_name
|
||||
* @property string|null $participant
|
||||
* @property string|null $participant_name
|
||||
* @property string $invoice_ids
|
||||
* @property int|null $expense_id
|
||||
* @property int|null $vendor_id
|
||||
@ -87,8 +87,8 @@ class BankTransaction extends BaseModel
|
||||
'expense_id',
|
||||
'vendor_id',
|
||||
'amount',
|
||||
'debitor',
|
||||
'debitor_name'
|
||||
'participant',
|
||||
'participant_name'
|
||||
];
|
||||
|
||||
|
||||
|
@ -63,8 +63,8 @@ class BankTransactionTransformer extends EntityTransformer
|
||||
'bank_account_id' => (int) $bank_transaction->bank_account_id,
|
||||
'status_id' => (string) $bank_transaction->status_id,
|
||||
'description' => (string) $bank_transaction->description ?: '',
|
||||
'debitor' => (string) $bank_transaction->debitor ?: '',
|
||||
'debitor_name' => (string) $bank_transaction->debitor_name ?: '',
|
||||
'participant' => (string) $bank_transaction->participant ?: '',
|
||||
'participant_name' => (string) $bank_transaction->participant_name ?: '',
|
||||
'base_type' => (string) $bank_transaction->base_type ?: '',
|
||||
'invoice_ids' => (string) $bank_transaction->invoice_ids ?: '',
|
||||
'expense_id' => (string) $bank_transaction->expense_id ?: '',
|
||||
|
@ -28,8 +28,8 @@ return new class extends Migration {
|
||||
|
||||
// MAYBE migration of account->bank_account_id etc
|
||||
Schema::table('bank_transactions', function (Blueprint $table) {
|
||||
$table->string('debitor')->nullable(); // iban, credit-card info or else
|
||||
$table->string('debitor_name')->nullable(); // name
|
||||
$table->string('participant')->nullable(); // iban, credit-card info or else
|
||||
$table->string('participant_name')->nullable(); // name
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user