A quotation has no delivery charge entered, but the saved record shows zero. Does that mean delivery is free, or that nobody has priced it yet? A business app needs an explicit rule for this distinction. Otherwise a convenient default can quietly turn missing information into an approved commercial value.

Original conceptual illustration, not a vendor screenshot or an actual ITZ client installation. Technical sources reviewed on 27 November 2026.

Define the business meaning first

For each numeric field, agree what zero, unknown and not applicable mean. They need not all be valid states. A stock quantity might legitimately be zero; a delivery charge awaiting review might need a pending state; an agreed complimentary service could require an explicit zero and a reason.

Write these rules in language the team can approve before choosing a database representation. Do not assume an empty text box, a missing API property, an empty string and a database null are interchangeable. Each layer can handle them differently.

Trace where the conversion happens

Use a fictional test quotation and follow the value from the form to the submitted request, saved record, edit screen and export. Ask the developer to identify defaults, numeric conversion and reporting expressions. Avoid investigating with private customer data when a synthetic record reproduces the problem.

PostgreSQL's conditional-expression reference explains that COALESCE returns the first non-null argument. A report that substitutes zero for null may display a number even when the underlying value remains unknown. Check storage and presentation separately before concluding that the database changed it.

Validate at the correct boundaries

Provide a useful form message when the value is required. Also validate on the server, since an import or integration can bypass the browser. Define whether an omitted field in an update means keep the existing value, clear it, or reject the request; that choice should be documented and tested.

In PostgreSQL, the constraint documentation explains that a CHECK passes when its expression is true or null. A positive-value check alone therefore does not make the column mandatory. NOT NULL and a range rule serve different purposes, and the permitted range must match the business requirement.

Use the required-field rollout guide when changing an existing schema. Do not recast every historical zero as unknown: some may be deliberate, valid values with financial consequences.

Approve an acceptance matrix

  1. Test blank, explicit zero, a permitted positive value, an invalid value and a cleared field.
  2. Repeat through create, edit, API and import paths that the business actually uses.
  3. Check saved values, labels, totals and exported cells. Unknown charges should remain visibly unresolved if that is the approved rule.
  4. Verify that an unrelated edit does not replace a valid existing number with a default.

The rounding review guide covers precision differences after a number is defined. Resolve missing-value meaning separately; a rounding adjustment cannot establish whether a charge was agreed.

ITZ's custom software development service can review these rules across the application. Describe the field and what an empty value should mean.

Review your numeric field rules

Bring the field definitions, affected screens and synthetic examples. Discuss validation, update semantics, reporting labels and a controlled plan for existing records. Review Your Numeric Field Rules