How to track who changed a price — and why 'last modified by' isn't enough
iotoms team · October 30, 2026 · 6 min read
A hardware and janitorial supply distributor running eleven vans had a contract price of $38.40 a case with one of its biggest accounts — a regional restaurant chain with a signed agreement locking that number in for the year. On a Tuesday invoice, the price came through as $42.90. The customer's purchasing manager caught it immediately, because she checked every invoice against the contract, and called asking who had changed her pricing without telling her.
Nobody had, as far as anyone in the office could tell. The sales rep swore he hadn't touched it. The office manager pulled up the customer record and found a field labeled "last modified" with a timestamp from two nights earlier and a user listed as "system." That told her something had changed the price. It told her nothing about what the price used to be, what actually changed it, or whether it was about to happen again on every other account that shared that vendor's item.
Why "last modified by" answers the wrong question
Most business software tracks exactly one fact about a change: that one happened, and when. The customer record has an updated_at column and maybe an updated_by column, and both get overwritten every time anything about the record changes — a phone number edit, a new delivery note, a price update, it's all the same field getting stamped over. By the time anyone goes looking, the only thing left is the most recent change, with no trace of what came before it or what specifically moved.
That's a status field, not a history. It can tell you a record isn't stale. It cannot tell you that the price was $38.40 last Thursday, became $42.90 Tuesday night, and that the job responsible was a nightly vendor cost sync that recalculates customer prices from a default markup — a job that has no idea a manual contract override exists on that one account, because the override lives in a spreadsheet nobody wired into the sync. Every distributor with more than a handful of negotiated contracts eventually hits this: automation and manual overrides both write to the same field, and whichever one ran most recently wins, silently, with no record of the collision.
This isn't the sync-conflict problem — it's the forensics problem
It's worth separating this from offline sync conflicts, where two devices edit the same record and the system decides whose change survives in the moment. What the purchasing manager needed days later was different: a way to answer "what was this field at every point in the past, who or what changed it, and why" — for a record nobody flagged as disputed until a customer called. A system that only resolves conflicts once and keeps no record of having done so leaves you just as blind afterward as one that never checked at all.
What an audit trail actually has to capture
A timestamp and a username is not an audit trail; it's a rumor. To actually answer "who changed this and why," four things have to be captured at the moment of the change, not reconstructed afterward:
The old value and the new value, not just that a change happened. "$38.40 → $42.90" is an answer. "Modified at 2:14am" is a question waiting to be asked.
The actual actor, not a generic label. "System" tells you nothing when three different nightly jobs, two integrations, and any employee with edit access could all plausibly be "the system." The specific job name, API key, or user ID that made the change is what turns a mystery into a two-minute lookup.
The source of the change, separate from the actor. A price can change because a person typed a new number, because a vendor cost feed recalculated it, or because a bulk price-list import ran. Same field, same kind of change, completely different fix depending on which one it was. Collapsing all three into "updated" is what makes the investigation take an afternoon instead of thirty seconds.
A record that the app itself can't quietly edit or delete. If the audit entries live in a table the same application code can update, a bug — or a bad actor — can rewrite history along with the data. The log has to be append-only: new entries get added, nothing gets altered or removed, not even by an admin screen that means well.
What it looks like once it's in place
With that in place, the same dispute stops being a phone call and a guessing game and becomes a lookup: the price field's history shows $38.40 set manually by the account's rep on contract signing, held unchanged for four months, then overwritten by a vendor cost sync job at 1:58am Tuesday. That single line tells you the actual bug — the sync doesn't check for a manual override flag before recalculating — and tells you which other contract accounts are sitting on the same landmine right now, because you can run the same query against all of them instead of waiting for the next customer to call.
It also changes the conversation with the customer. "We found it, it was a job that doesn't respect your contract price, and it's fixed" lands very differently than "we're not sure what happened, but it's fixed now" — especially on an account that checks every invoice.
What to check before you trust a system's history
- Open any price, credit limit, or route assignment field and ask: can I see every past value, or only the current one?
- For a changed field, does the system show who or what changed it — a specific user, job, or integration — or just the word "system"?
- Can an admin screen edit or delete an audit entry? If yes, it isn't an audit trail, it's a log that can be made to lie.
- Does the history distinguish a manual edit from an automated recalculation on the same field? If not, you can't tell a mistake from a job that's working as designed but shouldn't have touched that record.
- Pick one disputed number from the past month and time how long it takes to find out who or what actually set it. If the answer is "we can't," that's the gap to fix first.
iotoms keeps field-level history on the numbers that cause disputes — contract prices, credit limits, inventory adjustments — recording the old and new value, the specific user or sync job responsible, and the source of the change, so a disputed invoice is a lookup instead of a round of phone calls.