debug transaction resource

This commit is contained in:
omair saleh
2022-03-13 00:21:21 +08:00
parent de5bb1d1f8
commit 5b717a8502
+1 -1
View File
@@ -19,7 +19,7 @@ class TransactionResource extends JsonResource
{
$booking = in_array((int)$this->type, [TransactionType::BILL, TransactionType::REFUND])? $this->owner->owner : $this->owner;
if(!$booking instanceof Booking) dd($this->owner);
if(!$booking instanceof Booking) dd($this);
$days = $this->updated_at->endOfDay()->addWeekdays($booking->service_id === 3 ? 3 : 1);
return [