Skip to content

Set split mode to EVENLY for reimbursements in ExpenseForm#367

Open
Uli-Z wants to merge 1 commit intospliit-app:mainfrom
Uli-Z:bug-mark-as-paid
Open

Set split mode to EVENLY for reimbursements in ExpenseForm#367
Uli-Z wants to merge 1 commit intospliit-app:mainfrom
Uli-Z:bug-mark-as-paid

Conversation

@Uli-Z
Copy link
Copy Markdown
Contributor

@Uli-Z Uli-Z commented Jun 24, 2025

See Issue #365

Updates expense-form.tsx so that Mark As Paid reimbursements always use the EVENLY split mode rather than the group’s saved defaults.

@Uli-Z
Copy link
Copy Markdown
Contributor Author

Uli-Z commented Nov 11, 2025

rebased the PR-branch to the current version.

This commit fixes a significant usability issue where the "Mark as Paid" feature would behave incorrectly if the group had a default splitting option other than "Evenly".

Previously, when a user set a default splitting method for a group (e.g., "Unevenly" or "By Shares"), this default was also being applied to reimbursements. A reimbursement, by its nature, is a simple transfer between two parties and should always be split evenly. Applying a different split mode was not a valid operation and resulted in a confusing and disruptive user experience, making it difficult to mark debts as paid.

The fix is to update expense-form.tsx to ensure that when an expense is a reimbursement (isReimbursement: true), the splitMode is always hardcoded to 'EVENLY'. This change bypasses any group-level default splitting options for reimbursements, ensuring a smooth and intuitive workflow.

Fixes spliit-app#365
Zufallsgenerat0r pushed a commit to Zufallsgenerat0r/spliit that referenced this pull request Mar 11, 2026
Mark-as-paid reimbursements now always use EVENLY split mode instead
of inheriting from stored default splitting options.

Cherry-picked from spliit-app#367 by Uli-Z.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant