diff --git a/app/Http/Resources/TransactionResource.php b/app/Http/Resources/TransactionResource.php index 27d4b4df..a29d5eab 100644 --- a/app/Http/Resources/TransactionResource.php +++ b/app/Http/Resources/TransactionResource.php @@ -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 ? 2 : 3); + $days = Carbon::parse($this->updated_at->format('d-m-Y'))->addWeekdays($booking->service_id === 1 ? 1 : 3); return [ 'id' => $this->id, 'booking' => new BookingResource($booking), - 'service_id' => $booking->service_id === 1 ? 2 : 3, 'type' => (int) $this->type, 'bill_no' => $this->bill_no, 'payment_reference' => $this->payment_reference,