Skip to content

Commit

Permalink
index payment link & currency code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ganes556 committed Feb 19, 2025
1 parent 48f75de commit 9dd1105
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app/Http/Resources/Accounting/PaymentsResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ public function toArray($request): array
'created_at' => $this->created_at,
'updated_at' => $this->updated_at,
'amount' => $this->amount,
'route' => [
'name' => 'grp.org.accounting.payment-accounts.show.payments.show',
'params' => [
'organisation' => $this->organisation_slug,
'account' => $this->payment_accounts_slug,
'payment' => $this->id
]
],
'currency_code' => $this->currency_code,
'organisation_name' => $this->organisation_name,
'organisation_slug' => $this->organisation_slug,
Expand Down

0 comments on commit 9dd1105

Please sign in to comment.