1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Add participant to bank transformers

This commit is contained in:
David Bomba 2024-01-13 18:35:34 +11:00
parent 886bce4877
commit bba28466ac
2 changed files with 6 additions and 0 deletions

View File

@ -28,6 +28,8 @@ class BankTransactionMap
9 => 'transaction.base_type',
10 => 'transaction.payment_type_Credit',
11 => 'transaction.payment_type_Debit',
12 => 'transaction.participant',
13 => 'transaction.participant_name',
];
}
@ -46,6 +48,8 @@ class BankTransactionMap
9 => 'texts.type',
10 => 'transaction.credit',
11 => 'transaction.debit',
12 => 'transaction.participant',
13 => 'transaction.participant_name',
];
}
}

View File

@ -44,6 +44,8 @@ class BankTransformer extends BaseTransformer
'updated_at' => $now,
'company_id' => $this->company->id,
'user_id' => $this->company->owner()->id,
'participant' => $this->getString($transaction, 'transaction.participant'),
'participant_name' => $this->getString($transaction, 'transaction.participant_name'),
];
return $transformed;