FeatureRequest enum:SINGLE_PAYMENT Description: Možnost úhrady v podniku za všechny jednou osobou a následné generování QR ostatním
Implementation Notes
One person pays the entire bill at the restaurant (for speed), then QR codes are automatically generated for other diners to reimburse their share.
Key files to modify:
server/src/qr.ts – Generate reimbursement QR codes for each diner
server/src/pizza.ts – Adapt payment logic for group payment scenarios
client/src/App.tsx – Add "Pay for all" button and reimbursement UI
Detailed sub-tasks from TODO.md:
"Pay" button on each restaurant row – the person who clicks pays for everyone
Only shown if the user has a bank account number configured
Dialog for entering a tip amount, which gets split evenly among all diners
Generate and display QR codes for other diners to reimburse the payer
Allow each diner to add a custom amount (e.g., for drinks)
Allow selecting which diners are included in the group payment (checkboxes to exclude someone paying separately)
Approach:
Add a "Pay for all" action per restaurant in the daily view
Open a dialog showing all diners, their meals, and amounts
Allow tip input and per-person surcharges
Calculate each person's share and generate QR codes targeting the payer's account
Display QR codes to each respective user on their next page load
## Feature: Single-Person Payment for Everyone
**FeatureRequest enum:** `SINGLE_PAYMENT`
**Description:** Možnost úhrady v podniku za všechny jednou osobou a následné generování QR ostatním
### Implementation Notes
One person pays the entire bill at the restaurant (for speed), then QR codes are automatically generated for other diners to reimburse their share.
**Key files to modify:**
- `server/src/qr.ts` – Generate reimbursement QR codes for each diner
- `server/src/pizza.ts` – Adapt payment logic for group payment scenarios
- `client/src/App.tsx` – Add "Pay for all" button and reimbursement UI
**Detailed sub-tasks from TODO.md:**
- [ ] "Pay" button on each restaurant row – the person who clicks pays for everyone
- [ ] Only shown if the user has a bank account number configured
- [ ] Dialog for entering a tip amount, which gets split evenly among all diners
- [ ] Generate and display QR codes for other diners to reimburse the payer
- [ ] Allow each diner to add a custom amount (e.g., for drinks)
- [ ] Allow selecting which diners are included in the group payment (checkboxes to exclude someone paying separately)
**Approach:**
1. Add a "Pay for all" action per restaurant in the daily view
2. Open a dialog showing all diners, their meals, and amounts
3. Allow tip input and per-person surcharges
4. Calculate each person's share and generate QR codes targeting the payer's account
5. Display QR codes to each respective user on their next page load
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Feature: Single-Person Payment for Everyone
FeatureRequest enum:
SINGLE_PAYMENTDescription: Možnost úhrady v podniku za všechny jednou osobou a následné generování QR ostatním
Implementation Notes
One person pays the entire bill at the restaurant (for speed), then QR codes are automatically generated for other diners to reimburse their share.
Key files to modify:
server/src/qr.ts– Generate reimbursement QR codes for each dinerserver/src/pizza.ts– Adapt payment logic for group payment scenariosclient/src/App.tsx– Add "Pay for all" button and reimbursement UIDetailed sub-tasks from TODO.md:
Approach: