feat(admin): session edit form, payment edit/delete UI, and audit history modal
- SessionServiceCard menu gains «ویرایش» and «تاریخچه تغییرات» items.
- SessionAuditModal shows the session's change history (field, op badge,
old->new, actor, time) from /session/{uuid}/audit-log.
- PaymentStep payment rows get edit (modal) + delete (confirm) controls for
non-wallet payments, calling the new PATCH/DELETE payment endpoints.
- CreateStep accepts an editSession prop (prefill + PATCH); EditSessionPage
reuses it at /patients/:recordUuid/session/:sessionUuid/edit.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -153,6 +153,16 @@ export interface DiscountRule {
|
||||
updated_at: number;
|
||||
}
|
||||
|
||||
export interface SessionAuditEntry {
|
||||
field: string;
|
||||
operation: 'create' | 'update' | 'delete';
|
||||
old_value: string | null;
|
||||
new_value: string | null;
|
||||
actor_name: string | null;
|
||||
note: string | null;
|
||||
created_at: number;
|
||||
}
|
||||
|
||||
export interface DiscountSuggestion {
|
||||
rule_uuid: string;
|
||||
rule_name: string;
|
||||
|
||||
Reference in New Issue
Block a user