A hand holding a fan of euro and US dollar banknotes against a teal background

Building a Money Changer Accounting System: What FIFO Taught Me About Real Profit

By Willy Candra
•October 23, 2026
•6 min read
#build-lessons#internal-tools#accounting#money changer#FIFO

A money changer looks like a simple business. You buy currency, you sell currency, you keep the spread. When I started building a money changer accounting system for a Bali money changer, I assumed the hard part would be the interface. It was not. The hard part was answering one question honestly: how much money did we actually make today?

This post is about what I learned answering that question, and why it matters for any business that holds stock bought at changing prices.

The problem: your stock was bought at many different prices

A money changer does not buy US dollars once. It buys them all day, from tourists and other suppliers, at whatever the rate is at that moment. By the afternoon, the dollars in the safe were bought at several different prices.

Then a customer wants to buy 1,000 dollars. What did those dollars cost you? The answer decides your profit on that sale, and a spreadsheet usually guesses.

Here is a simple example with round numbers, not real figures:

  • Morning: you buy 1,000 USD at Rp 15,000.
  • Afternoon: the rate moves, and you buy another 1,000 USD at Rp 15,400.
  • Evening: you sell 1,000 USD at Rp 15,500.

If you match that sale against the morning dollars, your profit is Rp 500,000. If you match it against the afternoon dollars, your profit is Rp 100,000. Same sale, same day, five times difference in reported profit. Which one is true depends on the rule you use, and most manual books have no consistent rule at all.

Why we chose FIFO valuation

FIFO means "first in, first out." The oldest stock you bought is treated as the first stock you sold. It is the same logic a supermarket uses when it puts older milk at the front of the shelf.

For a money changer, FIFO has three practical advantages:

  1. It is consistent. Every sale follows the same rule, so profit is not decided by whoever fills in the spreadsheet.
  2. It follows the real flow of cash. Older notes generally do leave the safe first.
  3. It is defensible. When an accountant or auditor asks why profit was a certain number, you can trace every sale back to the exact purchases it used.

The cost of FIFO is that it is tedious to do by hand. Every sale has to "consume" purchase lots in order, sometimes splitting one lot across two sales. That is exactly the kind of work a computer should do and a person should not.

What the system actually does

I built the system so that staff never think about FIFO. They enter a transaction the way they always have: which currency, how much, what rate. Everything after that is automatic.

Cost of goods sold, in real time

Cost of goods sold (COGS) is simply what the currency you sold originally cost you. The system calculates it at the moment of each sale by matching against the oldest remaining purchases. Profit for the day is always up to date, not something someone works out later.

Live currency positions

Management can see how much of each currency is on hand and what it cost, at any time of day. That matters when deciding whether to keep buying a currency or slow down.

Daily reports without anyone building them

Every day the system produces a PDF report automatically. Nobody has to stay late to copy numbers into a template.

A simple entry screen

The front of the system uses transaction cards: one clear card per transaction instead of a wide spreadsheet row. That design choice did more to reduce mistakes than any clever backend logic, because the easiest place to stop an error is before it is typed.

The lesson that applies beyond money changers

The biggest lesson was not about currency. It was this: if your stock is bought at changing prices, your spreadsheet profit is probably an estimate, not a fact.

That is true for a lot of Bali businesses I talk to:

  • A restaurant buying ingredients whose prices move every week.
  • A retail shop restocking the same product from different suppliers.
  • A travel agency pre-buying tickets or room allotments at different rates.

In each case, the question "what did this sale really cost me?" has a precise answer, but only if every purchase is recorded and matched by a fixed rule. Without that, you can be busy, growing and still not know which products actually make money.

The second lesson is about where to put the effort. Owners often ask for dashboards first. I have learned to build the boring calculation layer first and the dashboard last. A beautiful chart of wrong numbers is worse than no chart, because people trust it.

What changed for the business

The system is in daily production use. The results the business gained were audit-grade accuracy in cost and valuation, real-time visibility of daily currency positions, and simpler daily workflows with less room for human error and shorter training for new staff.

One check you can run this week

You do not need new software to find out whether your profit numbers are reliable. Try this:

  1. Pick one product or currency you sold last week.
  2. List every purchase of it over the last month, with date, quantity and price.
  3. Take one specific sale and ask: which purchase did this come from, and what did it cost?
  4. Compare that cost to the one your books used.

If the two numbers match and you can explain why, your books are in good shape. If you cannot answer step 3, or the numbers differ, your reported profit is an estimate. That is the point where a proper system starts paying for itself. My post on calculating ROI shows how to put a number on that, and how I build systems explains how I approach a project like this from the first conversation.

Want to know your real profit?

If you run a money changer, a shop, or any business where purchase prices keep moving, and you want profit you can trust instead of an estimate, I would be glad to look at how you record it today. Get in touch at willycandra.dev/ContactMe.

Share this article:

Need a website that brings results?

Let's talk about building a site that works for your business.

Contact Me →
Money Changer Accounting System: Lessons From a Build | Willy Candra - Web Developer & SEO Expert | Willy Candra