mirror of
https://github.com/marcogll/AnchorOS.git
synced 2026-03-15 11:24:26 +00:00
TASK 4.1: Create technical specifications document - COMPLETED - Create docs/APERTURE_SPECS.md with complete technical specifications: - Response to Question 9: Hours worked (automatic from bookings) - Complete POS structure with multiple cashiers - Granular permissions system documentation - Includes: - Hours worked calculation logic (automatic vs manual) - POS architecture (6 payment methods, receipt options) - Multiple cashiers system with individual tracking - Financial management (expenses, profit margin) - Database schemas for POS, cashiers, expenses - API endpoints for POS operations Specifications Documented: - Hours worked: Automatic from bookings (scheduled vs actual duration) - Time adjustments: Manual updates allowed by staff - Payroll: Base salary + service commissions + product commissions + tips - POS payment methods: Cash, Transfer, Membership, Card, Giftcard, PIA - Receipts: Email or client dashboard only (no physical printing) - Cashiers: Individual tracking with movement logs for error resolution - Dynamic pricing: Configurable by service, both channels (booking + POS) - Giftcards: Purchaseable, redeemable, balance tracking - PIA (Paid in Advance): Apply previously paid deposits - Recurring expenses: Daily, weekly, monthly, yearly frequencies Database Schemas: - staff_time_tracking (NEW) - Track scheduled vs actual duration - pos_sales (NEW) - All POS transactions - giftcards (NEW) - Giftcard management - daily_cash_close (NEW) - Individual cashier closing - expenses (NEW) - Financial expense tracking API Endpoints: - POST /api/aperture/pos/sales - GET /api/aperture/pos/daily-summary - POST /api/aperture/pos/open-cash-register - POST /api/aperture/pos/close-cash-register - GET /api/aperture/pos/active-cash-registers - POST /api/aperture/finance/expenses - GET /api/aperture/finance/report Impact: - Complete technical foundation for POS implementation - Clear data model for hours worked calculation - Granular permissions architecture defined - Multiple cashiers system fully specified Files Created: - docs/APERTURE_SPECS.md Next: Task 2 - Document POS structure and multiple cashiers