Skip to content

[16.0][ADD] agx_sarabun: add seed data for document sequences and positions - #1164

Open
n3n wants to merge 2 commits into
16.0from
16.0-add-agx-sarabun-seed-data
Open

n3n wants to merge 2 commits into
16.0from
16.0-add-agx-sarabun-seed-data

Conversation

@n3n

@n3n n3n commented Aug 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds data/sarabun_document_sequence_data.xml: 45 sarabun.document.sequence records (one per KMITL issuing unit, prefixes อว 7000–7037) seeded from the provided CSV, all noupdate=1 with kmitl_demo department refs.
  • Adds data/sarabun_position_data.xml: 121 sarabun.position records covering every organisational unit — institute level (อธิการบดี, รองอธิการบดี 5 ด้าน), all 15 sub-offices under สำนักงานอธิการบดี, 13 faculties, 3 colleges, 6 offices/institutes, วิทยาเขต, โรงพยาบาล, สภา, KOSEN, and 42 บางกอก — with empty holder_ids for admin assignment.
  • Both files are noupdate=1; departments reference kmitl_demo.* (requires kmitl_demo installed); records whose department name differs or has no match are annotated with TODO comments.

n3n added 2 commits August 20, 2026 21:59
Seed 45 sarabun.document.sequence records (one per KMITL issuing unit,
prefix อว 7000–7037) and 121 sarabun.position records covering all
organisational units — institute level through faculty, college, office,
campus, and hospital — with empty holder_ids for admin assignment.
All records are noupdate=1 and reference hr.department via kmitl_demo.
- Drop required=True on sender_department_id (sequence install must not
  depend on hr.department XML IDs from an external demo module)
- Replace ref="kmitl_demo.XX" with search by name in both data files;
  departments link automatically when found, stay blank otherwise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant