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:
parent
886bce4877
commit
bba28466ac
@ -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',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user