fix wallets transaction lists

This commit is contained in:
omair saleh
2022-02-28 11:58:23 +08:00
parent c2bcece2e2
commit 2fda1d4155
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -62,7 +62,6 @@ class CompanyResource extends JsonResource
$segment = SegmentConstant::where('reference', SegmentConstants::SUPPLIER_CURRENCIES)->where('detail->id', $this->id)->first();
return $segment ? CurrencyResource::collection(Currency::whereIn('id', $segment->detail->currencies)->get()) : [];
}),
'wallets' => $this->id,
'wallet' => new WalletResource($this->wallets()->first()),
'created_at' => $this->created_at->format('d-m-Y')
];