The volume is measured to three decimals, the price carries two, and the total depends on where somebody rounded.
A quantity and a price have different precisions, and the answer depends on the order of operations.
Per line, per invoice, or not until the total. The three produce different answers on identical data and all three are defensible, which is why it has to be chosen instead of inherited from whoever wrote the first calculation.
Three decimals stored as three decimals, not trimmed to two because the money column has two. Trimming at entry loses the measurement and nothing afterwards recovers it.
Amounts stored as exact decimals, so a thousand lines add to the same total every time. The alternative produces differences of a cent that cannot be explained or reproduced.
Cubic metres, litres, hours, each recorded against the value rather than implied by which column it sits in. A conversion then happens once, in one place, with its factor stored.
Quantity, rate, factor and rounding step all present, so a figure can be reproduced rather than accepted. Most billing disputes are settled by this and by nothing else.
A total derived from its lines rather than stored next to them. Stored separately they drift, and then the invoice and the statement say different things about the same month.
Both situations are routine for us. Tell us which one applies and we will shape the first call around it.
The process runs in five steps, in the same order on every project. You can stop after any of them.
You outline the project and what you expect from it, we ask a few questions to understand the requirement, and we tell you whether PostgreSQL is the right tool for the job. If it is not, you hear that on the same call.
We go through the detail together. What the application has to do, who logs into it, what already exists, where the data lives, and what has to keep working while we build.
You receive a document that states what will be built, in what order, on what timeline, and at what cost. You read it before anyone signs anything.
The agreed scope becomes a signed contract. The confidentiality and intellectual property terms are set out in the same document, rather than in a separate one or at a later stage.
Development starts and we deliver working software at regular intervals. A preview environment goes up within the first week, so you can follow progress in the product itself.
You do not need the technical side to judge this. Here is what changes on the business side.
Quantity, rate and rounding on screen while the member is still on the phone. The alternative is somebody recalculating by hand and arriving at a third figure.
What was actually measured can still be used for something other than the invoice, which is usually what somebody wants it for two years later.
Once the total comes from the lines and the rounding is specified, there is nothing left to reconcile. The adjustment was concealing a design decision nobody had made.
Reproducible from its parts including the rounding step, which is what an auditor or a disputing customer is actually asking you for.
Hosting in a region you choose, billed to you, keys in your hands. Leaving us moves nothing.
Plain PostgreSQL documented as the work happens, so another firm could take it on without a long handover.
Ask where the rounding happens, and expect the answer to take a moment.
Ask whether it is per line or at the total. If nobody knows, it is happening in more than one place, and the results differ depending on which report somebody reads.
Ask how many decimals the column holds and how many the instrument produces. Where the first is smaller, the measurement is being discarded at the moment it arrives.
Ask for the column type. A floating figure produces totals that differ by a cent depending on the order rows are added, and that is not something anybody finds later.
Ask somebody to reproduce a single charge from its parts. If the parts are not all stored, the figure can only be accepted rather than checked.
Where the operational system and the accounting system both calculate, they will round differently. Ask which one produced the figure that actually went out.
The same engineer, who by then knows which figures you are asked for and where in the data each one comes from.
These are the languages and frameworks we build in.

Production-grade React applications with SSR

Elegant PHP framework for web artisans

Building interactive and responsive user interfaces

Relational database design, migration and tuning

Document database modelling and aggregation pipelines

Custom applications and legacy system modernisation

Server-side JavaScript for scalable applications

Backend development and data processing solutions

Progressive JavaScript framework for modern web UIs

Type-safe JavaScript for enterprise applications

Modern web development with React, Next.js, and Node.js

Modern utility-first CSS framework
A Christchurch operator that charges for something measured has two kinds of number in the same record. A quantity, which arrives from a meter or a gauge with however many decimals the instrument produces, and a price, which has two because money does. Multiplying one by the other produces a figure, and that figure is different depending on where the rounding happened. Per line, per invoice, or at the total. All three are legitimate and nobody chose between them.
What this looks like from the outside is a difference of a few cents each month. Somebody posts an adjustment, it reconciles, and after a couple of years the adjustment is part of the process rather than a symptom of anything. The problem is not the cents. It is that a charge which cannot be recalculated from its parts cannot be defended when a member rings about it, and that the adjustment is absorbing whatever else is wrong without anybody knowing what that is.
There are two further losses that happen at entry and cannot be undone. One is a quantity column with fewer decimals than the instrument produces, usually set to match the money column years ago, which discards the measurement at the moment it arrives. The other is money stored as a floating figure, which means a thousand lines add to a slightly different total depending on the order they are added in, and no amount of looking will ever find that.
What works is deciding the rounding and writing it into the design, storing quantities at the precision they were measured and money as exact decimals, and keeping the unit with the value rather than implying it from the column. The total is then derived from the lines rather than stored beside them, so the two cannot drift apart. On the first call we ask where the rounding happens and how long it takes anybody to answer.
What else is worth settling before work starts in this market is on our page for software development in Christchurch.
What PostgreSQL is in plain terms, and where we use it generally, is on PostgreSQL development services.
The same market, read from the other side: Next.js development in Christchurch, Laravel development in Christchurch, React development in Christchurch.
We reply the same working day