# KYN POS Phase 6 — Payment Ledger, Voids, Discounts, Close Check, Daily Close Draft

## Purpose

Phase 6 adds the first accounting-safe POS close workflow:

- manual payment rows,
- tips,
- tax recalculation,
- check-level discounts,
- manager void/comp event trail,
- close check as paid,
- daily close draft report.

No live card processor is integrated yet. Credit/debit payments are manual ledger rows only.

## Why payments were built this way

The legacy K41 POS used payment labels and summaries. KYN POS uses payment rows so tenders, tips, tax, and later refunds can be audited.

## New routes

- `page.php?p=pos_payments&check_id=123`
- `page.php?p=daily_close`
- `page.php?p=action_add_payment`
- `page.php?p=action_apply_discount`
- `page.php?p=action_void_check_line`
- `page.php?p=action_close_check`
- `page.php?p=action_refresh_daily_close`

## Current limitations

- No live processor.
- No refund workflow yet.
- No split-by-seat yet.
- No final approval/post-to-KYN yet.
- Voids/comps after payment are blocked in this phase.

## Test flow

1. Login as Demo Owner.
2. Open a table.
3. Add item with optional modifiers.
4. Send line/course to kitchen.
5. Open Payments / Close.
6. Add discount or void/comp before payment if needed.
7. Record payment and optional tip.
8. Close check as paid.
9. Open Daily Close.
10. Refresh draft for the business date.
11. Confirm summary/tenders/items populate.
