fix bill seeder

This commit is contained in:
omair saleh
2022-02-22 00:55:14 +08:00
parent 97fb939791
commit 91a6aabd1a
+1 -1
View File
@@ -18,7 +18,7 @@ class TransactionResource extends JsonResource
{
return [
'id' => $this->id,
'booking' => new BookingResource($this->type === TransactionType::BILL ? $this->owner->booking : $this->booking),
'booking' => new BookingResource($this->type === TransactionType::BILL ? $this->owner->owner : $this->booking),
'type' => (int) $this->type,
'bill_no' => $this->bill_no,
'payment_reference' => $this->payment_reference,