mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
update transaction timer
This commit is contained in:
@@ -17,12 +17,11 @@ class TransactionResource extends JsonResource
|
||||
public function toArray($request)
|
||||
{
|
||||
$booking = (int)$this->type === TransactionType::BILL ? $this->owner->owner : $this->booking;
|
||||
$days = Carbon::parse($this->updated_at->format('d-m-Y'))->addWeekdays($booking->service_id === 1 ? 1 : 3);
|
||||
$days = $this->updated_at->addWeekdays($booking->service_id === 1 ? 1 : 3);
|
||||
|
||||
return [
|
||||
'id' => $this->id,
|
||||
'booking' => new BookingResource($booking),
|
||||
'day' => $this->updated_at->addWeekdays($booking->service_id === 1 ? 1 : 3),
|
||||
'type' => (int) $this->type,
|
||||
'bill_no' => $this->bill_no,
|
||||
'payment_reference' => $this->payment_reference,
|
||||
|
||||
Reference in New Issue
Block a user