mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/portal.git
synced 2026-08-27 08:24:39 +00:00
show order reference on payment verification component
This commit is contained in:
@@ -24,7 +24,7 @@ class TransactionResource extends JsonResource
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'owner' => ($this->owner instanceof Transaction) ? new TransactionResource($this->owner) : '',
|
||||
'order' => ($this->owner instanceof Transaction) ? new OrderResource($this->owner->owner) : new OrderResource($this->owner),
|
||||
'documents' => DocumentResource::collection($this->documents),
|
||||
'type' => (int) $this->type,
|
||||
'bill_no' => $this->bill_no,
|
||||
@@ -40,7 +40,7 @@ class TransactionResource extends JsonResource
|
||||
'currency_rate' => (double) $this->currency_rate,
|
||||
'status' => (int) $this->status,
|
||||
'details' => TransactionDetailResource::collection($this->transactionDetails),
|
||||
'transactions' => TransactionResource::collection($this->whenLoaded('transactions')),
|
||||
'transactions' => TransactionResource::collection($this->transactions),
|
||||
'payment_attempts' => TransactionResource::collection(
|
||||
$this->transactions()
|
||||
->payments()->where('status', ApprovalStatus::PENDING_SUBMISSION)
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<div class="font-heading fs-10 muted all-caps">Order</div>
|
||||
<div class="font-heading fs-10"><a :href="route('order.show' , item.owner.owner.reference)" target="_blankshow o">{{item.owner.owner.reference}}</a></div>
|
||||
<div class="font-heading fs-10"><a :href="route('order.show' , item.order)" target="_blankshow o">{{item.order.reference}}</a></div>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<div class="font-heading fs-10 muted all-caps">Marking</div>
|
||||
|
||||
Reference in New Issue
Block a user