Контекст
Several legal companies shared a factory floor but not a system. Accounting, HR, and inventory each had a private version of “what happened today.”
Граница системы
В системе
- company
- plant
- inventory
- manufacturing orders
- accounting
- HR
- role-based RTL admin
Вне системы
machine PLC control
Архитектура
Company is the tenancy root. Manufacturing and inventory are operational. Accounting and HR consume operational postings; they do not invent stock movements.
- Company
- Manufacturing
- Inventory
- Accounting
- HR
- Company is the tenancy root
- Accounting consumes stock events
- Company
- Manufacturing
- Inventory
- Accounting
- HR
Счётчики из опубликованной записи. Они описывают структуру, а не измеренный результат.
Как связаны домены системы?
tenancy
- сервисCompany
operations
- процессManufacturing
- хранилищеInventory
consumers
- интерфейсAccounting
- интерфейсHR
- CompanyManufacturing
- CompanyInventory
- CompanyAccounting
- CompanyHR
- ManufacturingInventory
- InventoryAccounting
Критические потоки
A manufacturing order consumes inventory under a company
output increases stock
accounting receives a posting
HR remains orthogonal except where labor is booked to the order.
Этапы
Решения
Company before plant
Legal entity is not a filter on a god table. Documents belong to a company.
Inventory is operational fact
Accounting posts follow stock events. Reversing a journal does not restock a warehouse.
RTL is a first-class UI
Arabic administration is not a mirrored afterthought. Dashboards are designed in RTL.
Когда что-то ломается
| Условие | Обнаружение | Реакция |
|---|---|---|
| Cross-company stock write | Tenancy guard | Reject; audit |
| Negative inventory without policy | Balance check | Block order complete |
| Accounting period closed | Period lock | Queue posting to next open period with explicit date |
Инфраструктура
- Application servers
- database per environment
- backups
- role matrix
- Arabic locale pack
Результат
One operational system for multiple companies on a shared floor, with accounting and HR as consumers of operational events.
Текущее состояние
In production under a private engagement. This record is the public, anonymized projection.