Phase 5: the Immigration Bureau's forms, filled in from the records
CI / secret scan (push) Successful in 5s
CI / fmt, clippy, tests (push) Successful in 39s

A Forms tab on each person fills in TM.7, STM.2, STM.9, STM.11 and STM.1
for an extension of stay, TM.47 for a 90-day report and TM.8 for a re-entry
permit. The Bureau's blank pages (forms/, with their sources and checksums)
go unchanged into a new PDF, and the values are written on the dotted lines
in Sarabun; boxes are ticked and the title circled where a form asks.
scripts/gen_layout.py measures the blanks into src/papers/layout.rs.

The tab says what would stay blank and links to where it is added. What only
the application says (the date, the office, the reason, the days, a trip) is
carried in the links and never stored. The extension's five forms also come
in one PDF. Opening or downloading a form is audited as entity "form" with
the forms' codes, never their values.

Migration 0005 adds what STM.1 and STM.11 ask of the company (capital,
revenue, equity, staff, a coordinator), a work permit's salary and contract
dates, and where an arrival came from. The Nix package now takes forms/.
This commit is contained in:
grabowski committed 2026-11-18 12:30:03 +07:00
1 parent 2a6e972b68
commit a2cedcdd7e
40 files changed
+3404 -35

No files matched your search

+4 -2
View File
@@ -19,8 +19,8 @@
];
forAll = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
# The server: one binary with its templates, static files and
# migrations compiled in (build.rs, sqlx::migrate!). The tests need
# The server: one binary with its templates, static files, migrations
# and blank forms compiled in (build.rs, sqlx::migrate!, include_bytes!). The tests need
# PostgreSQL, so the package build runs none; CI and the fleet's VM
# test (checks.visa in cnx-network-clan) cover them.
package =
@@ -38,6 +38,8 @@
./templates
./static
./migrations
# the blank forms and their font, compiled in (src/papers)
./forms
# Cargo.toml names tests/main.rs as a target
./tests
];