Skip to content

Replace hardcoded person share values with formulas in spreadsheet - #13

Merged
dphoria merged 1 commit into
masterfrom
feature/formulats-for-person-shares
Oct 19, 2025
Merged

Replace hardcoded person share values with formulas in spreadsheet#13
dphoria merged 1 commit into
masterfrom
feature/formulats-for-person-shares

Conversation

@dphoria

@dphoria dphoria commented Oct 19, 2025

Copy link
Copy Markdown
Owner

Updates the spreadsheet to use formulas instead of hardcoded values for person shares, making calculations transparent and editable.

Changes:

  • Modified get_shares_spreadsheet() to generate formulas for each person's share of items
  • Formula format: =$B{row}/{split_count} (e.g., =$B2/2 for items split between 2 people)
  • Uses get_split_count() to determine how many people share each item
  • Updated test expectations to verify formulas instead of literal values
  • Makes spreadsheet calculations visible and manually editable

Benefits:

  • Users can see exactly how shares are calculated
  • Formulas can be edited if needed
  • Split counts are clearly visible in the formulas

- Update get_shares_spreadsheet() to generate formulas (item price / split count) instead of calculated values
- Use get_split_count() to determine how many people share each item
- Formula format: =$B{row}/{split_count} for transparent calculations
- Update test expectations to verify formulas instead of literal values
- Makes spreadsheet more transparent and editable
@dphoria
dphoria merged commit 233d90a into master Oct 19, 2025
3 checks passed
@dphoria
dphoria deleted the feature/formulats-for-person-shares branch October 19, 2025 22:33
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