mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04: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',
|
9 => 'transaction.base_type',
|
||||||
10 => 'transaction.payment_type_Credit',
|
10 => 'transaction.payment_type_Credit',
|
||||||
11 => 'transaction.payment_type_Debit',
|
11 => 'transaction.payment_type_Debit',
|
||||||
|
12 => 'transaction.participant',
|
||||||
|
13 => 'transaction.participant_name',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,6 +48,8 @@ class BankTransactionMap
|
|||||||
9 => 'texts.type',
|
9 => 'texts.type',
|
||||||
10 => 'transaction.credit',
|
10 => 'transaction.credit',
|
||||||
11 => 'transaction.debit',
|
11 => 'transaction.debit',
|
||||||
|
12 => 'transaction.participant',
|
||||||
|
13 => 'transaction.participant_name',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -44,6 +44,8 @@ class BankTransformer extends BaseTransformer
|
|||||||
'updated_at' => $now,
|
'updated_at' => $now,
|
||||||
'company_id' => $this->company->id,
|
'company_id' => $this->company->id,
|
||||||
'user_id' => $this->company->owner()->id,
|
'user_id' => $this->company->owner()->id,
|
||||||
|
'participant' => $this->getString($transaction, 'transaction.participant'),
|
||||||
|
'participant_name' => $this->getString($transaction, 'transaction.participant_name'),
|
||||||
];
|
];
|
||||||
|
|
||||||
return $transformed;
|
return $transformed;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user