Analytic dimensions — system description
Data model of dimensions, codes and allocations, key normalisation and uniqueness, reference-protected deletion, and the gaps in permission checking.
Overview
Analytic dimensions (key, name, amount-based or not, sort order) and per dimension codes (code, name, validity from–to). Invoice line allocations reference the codes. The code list opens from the code list icon of the dimension's row.
Data model
Table names carry the installation's own prefix in the database.
| Table | Purpose | Main fields |
|---|---|---|
analytic_dimension | dimension | key (unique), name, amount-based flag, sort order, status, created_by |
analytic_code | code within a dimension | dimension, code (unique within the dimension), name, validity, status |
analytic_allocation | invoice line allocation | references the code; source of the delete protection |
Process and validation
- Lists: dimensions by name, key and status, with code count; codes by dimension, code and status.
- Saving a dimension: key lower-cased and normalised to the allowed characters, at most 64; name at most 128; key uniqueness; insert or update with the creator.
- Saving a code: dimension required, code at most 64, name at most 255, validity from ≤ to, code unique within the dimension.
- Status change per row and in bulk.
- Delete: a dimension only without codes, a code only without allocations; the other selected rows are deleted, the refused ones come back as an error list.
- Every step is logged.
Permissions
- Layer 2:
list(both lists);add+editfor the Add button (for codes also a selected dimension); saving a new dimension asksaddif the key is in the catalogue, otherwiseedit; saving a code and status changesedit;delete;debugon both lists. - Layer 3: none — global master.
Known limitations
- Opening the page, the code list page and the two forms checks no permission; the checks are on the lists and on saving.
- The catalogue key
statusdeleteis not implemented by the controller.