refactor(address): update address models and forms to use standardized fields

- Add preload relationships to address-related models
- Rename postalCode to postalCode_code for consistency
- Simplify location type handling with hidden fields
- Update validation schemas and form components
- Improve address display in patient preview
This commit is contained in:
Khafid Prayoga
2025-10-10 15:36:54 +07:00
parent a5d5e8acd1
commit ea04f33ad1
14 changed files with 122 additions and 109 deletions

No files matched your search

+4 -1
View File
@@ -1,9 +1,12 @@
import { type Base, genBase } from "./_base"
import { type Base, genBase } from './_base'
import type { Province } from './province'
export interface Regency extends Base {
code: string
name: string
province_code: string
province?: Province | null
}
export function genRegency(): Regency {