Mizo Group

How the controls work

Each control is enforced in the server, not only hidden on the screen, and has a line in the proof script that tries to break it.

1. No over-certification

Cumulative certified value cannot exceed the contract sum plus approved variations, on either side. A line's quantity cannot exceed its contract quantity plus variations unless a reason is recorded.

Enforced in: assessCertificate / certifyClaim (src/lib/contracts/service.ts) via overCertificationProblem and lineOverProblems

2. Segregation of duties

Whoever assesses a subcontractor's claim cannot sign its certificate; whoever raises a variation or back-charge cannot sign it; the person who prepares a payment cannot approve it (unchanged in the bill approval chain).

Enforced in: signRecord (service.ts) via signProblem; the 861 chain's own check for payments

3. Approval limits

Variations, back-charges, certificates, awards and retention releases above a company limit need more signatures, each from a different person with Contracts approve.

Enforced in: signRecord + signaturesRequired with the limits in Contracts settings

4. Locks

A certified claim is read-only: a correction goes in the next period's claim or as a recorded reversal. A date in a closed accounting period cannot be used.

Enforced in: every certificate write checks certLocked; certify / invoice / bill check lockedPeriodProblem against the company lock date

5. Retention

Deductions stop at the cap. A release needs the taking-over certificate (handover share) or the end of the defects period (balance), plus the signatures.

Enforced in: computeCertificate (cap); requestRetentionRelease via retentionReleaseProblem; signRecord

6. Award gate

An award is refused for a blocked contractor, an expired document, a missing insurance, or a missing advance payment guarantee where there is an advance. Only an administrator can override, and the override is logged.

Enforced in: awardContract via awardProblems; override needs users:edit and a reason (ContractApproval OVERRIDE + change log)

7. Budget

An award, variation or certificate that takes committed cost over the BOQ budget stops for an approval; it is never silently allowed.

Enforced in: awardContract / approveVariation via budgetOverruns over the BOQ line balances (subcontract lines now count as committed)

8. Audit trail

Every change to a contract, claim, certificate, variation, back-charge, retention release or security records who, when, and the before and after values.

Enforced in: logChange in every write in service.ts (changes: { field: { from, to } })

9. Exceptions dashboard

One page shows expiring bonds and insurances, claims waiting more than N days, pending variations, certified amounts not yet invoiced or billed, retention due for release, disputed back-charges and contractors below the performance threshold.

Enforced in: /contracts/exceptions (loadExceptions in src/lib/contracts/data.ts)

This company's settings

  • Award of a subcontract: one signature.
  • Variation order: one signature.
  • Back-charge: one signature.
  • Payment certificate / client claim: one signature.
  • Retention release: one signature.
  • Award gate insurances: Contractor's all risks, Third-party liability, Workmen's compensation.
  • VAT on certified value: not decided — certificates wait for it.
  • Accounting lock date: none.
  • Posting of retention and advances: off (waits for the accountant to confirm the entries).

AI advice

The verification assistant gives advice only. It never approves; a named person verifies, and the record keeps the opinion beside that person's name. Every place that shows an opinion shows:

This is AI advice based on its best estimate. Final approval rests with human verification.