update transaction timer to create date not updated date

This commit is contained in:
omair saleh
2022-03-17 09:34:07 +08:00
parent 7587e01cac
commit f379e44024
+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;
$days = $this->updated_at->endOfDay()->addWeekdays($booking->service_id === 3 ? 3 : 1);
$days = $this->created_at->endOfDay()->addWeekdays($booking->service_id === 3 ? 3 : 1);
return [
'id' => $this->id,