mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
show currency supplier info for transaction
This commit is contained in:
@@ -21,7 +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),
|
||||
// 'issuer_name' => $this->issuerCompany->name,
|
||||
'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,
|
||||
|
||||
@@ -29,7 +29,7 @@ class Transaction extends AbstractModel implements Documentable
|
||||
/**
|
||||
* @return BelongsTo
|
||||
*/
|
||||
public function issuer(): BelongsTo
|
||||
public function issuerCompany(): BelongsTo
|
||||
{
|
||||
return $this->BelongsTo( Company::class, 'issuer', 'id');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user