Skip to content

Instantly share code, notes, and snippets.

View SnapAI-dev's full-sized avatar

SnapAI-dev SnapAI-dev

View GitHub Profile
@SnapAI-dev
SnapAI-dev / slice-2-3-spec.md
Created May 21, 2026 03:48
Salon system — design spec for Slices 2 + 3 (Complete dialog + Sales ledger report). Continues Casey's Slice 1 spec.

Design Specification: Slices 2 & 3 — Complete-Treatment Dialog + Sales Ledger Report

Context. This continues the design started in Casey's Slice 1 gist. Slice 1 (backend payment capture + completion gate) shipped as PR #90 on feat/service-payment-capture. This document specifies the two remaining slices: the staff-facing 完成療程 dialog (Slice 2) and the redesigned /reports ledger page (Slice 3).


What's already in place (Slice 1, PR #90)

  • Payment.appointmentId FK + index; Appointment.payments back-relation
  • PAYMENT_METHOD constants: CASH · FPS · VISA · MASTERCARD · AE · ALIPAY · PAYME (plus legacy STRIPE · OTHER)