Skip to content

Commit

Permalink
Return transaction number in API results, and make it filterable on t…
Browse files Browse the repository at this point in the history
…hat field
  • Loading branch information
just-push-it committed Jan 14, 2024
1 parent e1ba4c3 commit 87aaecf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Resources/Banking/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function toArray($request)
{
return [
'id' => $this->id,
'number' => $this->number,
'company_id' => $this->company_id,
'type' => $this->type,
'account_id' => $this->account_id,
Expand Down
1 change: 1 addition & 0 deletions config/search-string.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
App\Models\Banking\Transaction::class => [
'columns' => [
'id',
'number',
'type' => [
'values' => [
'income' => 'general.incomes',
Expand Down

0 comments on commit 87aaecf

Please sign in to comment.