Skip to main content

DEFAULT_RECONCILIATION_TOLERANCE

@forge/monorepo


@forge/monorepo / backend/src / DEFAULT_RECONCILIATION_TOLERANCE

Variable: DEFAULT_RECONCILIATION_TOLERANCE

const DEFAULT_RECONCILIATION_TOLERANCE: object

Defined in: backend/src/usage/rollups.ts:129

The tolerance a discrepancy has to clear to be reported — AC-5.

Both a fraction and a floor, and both are needed. A fraction alone reports every tiny period as broken: on a €0.02 hour a one-cent rounding difference is 50%. A floor alone stops scaling: on a €10,000 month a €5 absolute tolerance is noise nobody can act on. A discrepancy must exceed both to be worth someone's attention.

Type Declaration

floorMinorUnits

readonly floorMinorUnits: 100 = 100

fraction

readonly fraction: 0.02 = 0.02