show currency supplier info for transaction

This commit is contained in:
omair saleh
2021-11-29 12:20:00 +08:00
parent f8f8833994
commit e6ada6b2d4
3 changed files with 14 additions and 0 deletions
@@ -21,6 +21,7 @@ class TransactionResource extends JsonResource
'booking' => new BookingResource($this->booking),
'type' => (int) $this->type,
'bill_no' => $this->bill_no,
'issuer' => new CompanyResource($this->issuer),
'recipient_bank_account' => new BankResource($this->when((int) $this->type === TransactionType::BILL,$this->booking->bank)),
'amount' => (double) $this->amount,
'original_amount' => (double) $this->original_amount,