diff --git a/frontend/src/lib/components/account/UserBookingModal.svelte b/frontend/src/lib/components/account/UserBookingModal.svelte index c0f5c86..9fe4480 100644 --- a/frontend/src/lib/components/account/UserBookingModal.svelte +++ b/frontend/src/lib/components/account/UserBookingModal.svelte @@ -634,16 +634,35 @@ Cancel Booking - Are you sure you want to cancel this booking? + {#if hasPayments} +

+ Are you sure you want to cancel this booking? You have already made payments totalling + £{totalPaid.toFixed(2)}. +

+ {:else} + Are you sure you want to cancel this booking? + {/if} {#if hasPayments}

Please note:

- The £{totalPaid.toFixed(2)} already paid for this booking - will not be refunded, but will be retained as credit towards a future appointment. + Any amounts paid (£{totalPaid.toFixed(2)}) will + not be refunded, but will be retained as credit towards a future appointment.

+ {#if selectedBooking} + {#if selectedBooking.deposit_paid} +

+ The deposit of + £{selectedBooking.deposit_amount?.toFixed(2)} + paid for this booking may be forfeited. +

+ {/if} + {#if selectedBooking.deposit_required && !selectedBooking.deposit_paid} +

Any outstanding deposit will no longer be due.

+ {/if} + {/if}
{/if}