Return transaction number in API results, and make it filterable on that field
This commit is contained in:
parent
e1ba4c33d0
commit
87aaecf9e0
|
|
@ -21,6 +21,7 @@ class Transaction extends JsonResource
|
|||
{
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'number' => $this->number,
|
||||
'company_id' => $this->company_id,
|
||||
'type' => $this->type,
|
||||
'account_id' => $this->account_id,
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ return [
|
|||
App\Models\Banking\Transaction::class => [
|
||||
'columns' => [
|
||||
'id',
|
||||
'number',
|
||||
'type' => [
|
||||
'values' => [
|
||||
'income' => 'general.incomes',
|
||||
|
|
|
|||
Loading…
Reference in New Issue