Skip to content

fix: update refund form logic - #609

Merged
jonasbrunvoll merged 3 commits into
mainfrom
jonas/refund_schema_update
Aug 8, 2025
Merged

fix: update refund form logic#609
jonasbrunvoll merged 3 commits into
mainfrom
jonas/refund_schema_update

Conversation

@jonasbrunvoll

@jonasbrunvoll jonasbrunvoll commented Aug 5, 2025

Copy link
Copy Markdown
Contributor

This PR includes the following changes:

  • Refactors TicketType to use the TicketTypeId enum for better type safety and consistency.
  • Updates refund forms according to new requirements from FRAM including:
    • For purchases made on bus/terminal:
      • The customer number field can be removed.
      • If the user select a period ticket the travel card number field must be filled.

These changes align the form logic more closely with updated requirements from FRAM.

Before

Skjermbilde 2025-08-07 kl  15 54 55

After

Single ticket Period ticket
Skjermbilde 2025-08-07 kl  15 54 27 Skjermbilde 2025-08-07 kl  15 54 19

@jonasbrunvoll jonasbrunvoll self-assigned this Aug 5, 2025
@vercel

vercel Bot commented Aug 5, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
planner-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2025 0:57am

@jonasbrunvoll
jonasbrunvoll force-pushed the jonas/refund_schema_update branch from 6f4bf5d to 198583e Compare August 7, 2025 12:55
@jonasbrunvoll jonasbrunvoll changed the title feat: update refund forms update: TicketType to use enums and update refund forms with new customer number logic Aug 7, 2025
@jonasbrunvoll
jonasbrunvoll marked this pull request as ready for review August 7, 2025 14:20
@jonasbrunvoll jonasbrunvoll changed the title update: TicketType to use enums and update refund forms with new customer number logic feat: update refund forms with new customer number logic Aug 8, 2025
@jonasbrunvoll jonasbrunvoll changed the title feat: update refund forms with new customer number logic fix: update refund form logic Aug 8, 2025
@jonasbrunvoll
jonasbrunvoll merged commit 9268855 into main Aug 8, 2025
5 checks passed
@jonasbrunvoll
jonasbrunvoll deleted the jonas/refund_schema_update branch August 8, 2025 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants