fix wallets transaction lists

This commit is contained in:
omair saleh
2022-02-28 11:44:43 +08:00
parent 29f5b98fca
commit 111b6cea03
+1 -1
View File
@@ -62,7 +62,7 @@ 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->wallets,
'wallets' => $this->banks,
'wallet' => new WalletResource($this->wallets()->first()),
'created_at' => $this->created_at->format('d-m-Y')
];