Return transaction number in API results, and make it filterable on that field

This commit is contained in:
Alan Litz 2024-01-14 16:35:12 -05:00
parent e1ba4c33d0
commit 87aaecf9e0
2 changed files with 2 additions and 0 deletions

View File

@ -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,

View File

@ -156,6 +156,7 @@ return [
App\Models\Banking\Transaction::class => [
'columns' => [
'id',
'number',
'type' => [
'values' => [
'income' => 'general.incomes',