Sampling — Auto-Select and the materiality threshold
How Auto-Select fills each sample-analysis widget, the universal Min(40, ⌈20%⌉) rule, the materiality input, and how coverage is reported.
Sampling in Local Check is deterministic, value-driven, and procedure-specific. Each AUP procedure that requires a sample (Labor §3, Goods & Services §4, CapEx §5, Capacity Building §6 — Training / Providers / R&D, Depreciation §7) has its own sample-analysis widget. The same Auto-Select action and the same coverage formula apply across all of them.
The universal sample-size rule#
Behind every Auto-Select button the platform computes the required sample count using a single formula: `requiredSampleCount = Min(40, ⌈20% × population⌉, populationCount)`. In other words, the platform picks the smaller of (a) 40 records, (b) the count needed to reach 20% of the population, or (c) the entire population if it is smaller still.
Selection order: highest value first
The materiality input#
Each sample-analysis widget exposes a Materiality field at the top. Any record whose amount equals or exceeds this threshold is mandatorily included in the sample regardless of the Min(40, ⌈20%⌉) cap. Auto-Select POSTs the value to the API as { action: "autoSelect", materiality: <number> }, and the server flags the qualifying records before completing the value-based fill.
How to run a sample analysis#
- 1Open the section's AUP procedure (e.g. Procedure 3.1.f Sample Analysis for Labor).
- 2Enter the Materiality amount in SAR (or 0 to skip mandatory inclusion).
- 3Click Auto-Select. The platform applies the Min(40, ⌈20%⌉) rule on top of the materiality flagging and returns:
sampleSize,sampleValue,populationValue, andcoveragepercentage. - 4Review the selected records in the table; you can manually toggle the Sample flag on any record to add or remove it.
- 5Click Save (or Save & Close) to persist the selection. The coverage indicator reflects the latest state.
Coverage indicator (visual feedback)#
Coverage is computed as `(sampleValue / populationValue) × 100`. The widget paints the indicator using a three-tier scale: ≥ 100% → green, ≥ 70% → emerald, otherwise → amber. The colour reflects platform UI feedback only; the regulatory threshold remains the 20% target enforced by the Auto-Select formula.
Sections that have a sampling widget#
| Section | Procedure | Population sorted by |
|---|---|---|
| §3 Labor | 3.1.f | Basic salary (descending) |
| §4 Goods & Services | 4.1.h | Highest + random invoice per supplier |
| §5 Capital Expenditure | 5.1.f | Asset transaction value (descending) |
| §6.1 Training | 6.1.f | Training cost (descending) |
| §6.2 Providers | 6.2.f | Provider spend (descending) |
| §6.3 R&D | 6.3.g | Project cost (descending) |
| §7 Depreciation | 7.1.d | Depreciation amount (descending) |
Suppliers — two transactions per supplier
isSample) is set when a supplier is disclosed, and the two transactions are captured against that supplier inside the widget.Selection is locked once procedures are reviewed