Laravel Vapor - Fix a front end display inaccurate on user UI when editing recipient bank details

This commit is contained in:
Dillon Ngo
2024-10-28 16:54:58 +08:00
parent bb0bc7a04e
commit 2e8771fead
+1 -1
View File
@@ -35,8 +35,8 @@ class TransactionResource extends JsonResource
$isEditedBankRecipient = $this->bank ? true : false;
}
//Check if Transaction of type PAYMENT has an override for recipient bank - ends
$days = $this->created_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,
'booking' => new BookingResource($booking),