Case 03 · Cactus · Shift & Cash

Case 03 · Cactus · Shift & Cash

Closing a shift without reopening it

Closing a shift without reopening it

Closing a register could force staff to reopen one they had already closed. I defined the validation hierarchy with engineering, so every check runs before the action is offered.

Closing a register could force staff to reopen one they had already closed. I defined the validation hierarchy with engineering, so every check runs before the action is offered.

Company

Company

Role

Sole product designer

Role

Sole product designer

Team

IT Product

Team

IT Product

Surface

POS tablet app (Flutter)

Surface

POS tablet app (Flutter)

Status

Shipped · in production

Status

Shipped · in production

The product

The product

Cactus is a B2B SaaS platform for restaurants, bars and cafés. It runs the daily operation of a venue: orders, tables, payments, cash control and the financial closure at the end of the day.

Cactus is a B2B SaaS platform for restaurants, bars and cafés. It runs the daily operation of a venue: orders, tables, payments, cash control and the financial closure at the end of the day.

Cactus is a B2B SaaS platform for restaurants, bars and cafés. It runs the daily operation of a venue: orders, tables, payments, cash control and the financial closure at the end of the day.

Shift & Cash is the module that governs that closure. It decides when a register can be closed, what has to be resolved first, and whether the numbers the venue reports match the numbers the system recorded. It’s the last thing anyone touches before going home, and the part of the product where a design mistake stops being a usability problem and becomes a money problem.

Shift & Cash is the module that governs that closure. It decides when a register can be closed, what has to be resolved first, and whether the numbers the venue reports match the numbers the system recorded. It’s the last thing anyone touches before going home, and the part of the product where a design mistake stops being a usability problem and becomes a money problem.

My contribution

My contribution

Found the structural issues in the closing flow.

Found the structural issues in the closing flow.

Defined the validation hierarchy and the state and transition model with engineering.

Defined the validation hierarchy and the state and transition model with engineering.

Designed the closing flow: Express Checkout, billing layer, reconciliation and shift confirmation.

Designed the closing flow: Express Checkout, billing layer, reconciliation and shift confirmation.

Not mine: The implementation, the payment and tax integrations, built by engineering.

Not mine: The implementation, the payment and tax integrations, built by engineering.

The problem

The problem

It’s one in the morning on a Saturday. The venue is empty, the staff want to leave, and the cashier starts closing the register.

It’s one in the morning on a Saturday. The venue is empty, the staff want to leave, and the cashier starts closing the register.

It’s one in the morning on a Saturday. The venue is empty, the staff want to leave, and the cashier starts closing the register.

The system stops them: a table has an unpaid order. They leave the closing flow, find the table, charge it, and start again from the beginning. Then shift closing runs the same validation a second time and finds something cash closing didn’t catch.

The system stops them: a table has an unpaid order. They leave the closing flow, find the table, charge it, and start again from the beginning. Then shift closing runs the same validation a second time and finds something cash closing didn’t catch.

In a venue with more than one register, the pending item belonged to a register that was already closed. To resolve it, someone had to reopen a closed register, complete the payment, and close it again. A record that was supposed to be final was being reopened as routine, by whoever was still awake.

In a venue with more than one register, the pending item belonged to a register that was already closed. To resolve it, someone had to reopen a closed register, complete the payment, and close it again. A record that was supposed to be final was being reopened as routine, by whoever was still awake.

Diagnosis

Diagnosis

Every screen was legible. The order was wrong.

Every screen was legible. The order was wrong.

Nobody had defined what state the system had to be in before each transition was allowed. Four things were true at once.

Nobody had defined what state the system had to be in before each transition was allowed. Four things were true at once.

Nobody had defined what state the system had to be in before each transition was allowed. Four things were true at once.

01

01

Cash closing only checked payments

Cash closing only checked payments

And its answer to finding one was to send the user somewhere else.

And its answer to finding one was to send the user somewhere else.

02

02

Shift closing repeated the checks

Shift closing repeated the checks

Without a shared hierarchy, so the two validations could disagree with each other.

Without a shared hierarchy, so the two validations could disagree with each other.

03

03

Billing validation had gaps

Billing validation had gaps

In some paths it was missing entirely. A shift could close with unbilled sales inside it.

In some paths it was missing entirely. A shift could close with unbilled sales inside it.

04

04

The system was reactive

The system was reactive

It waited for the user to hit a wall and then showed an alert, instead of checking before offering the action.

It waited for the user to hit a wall and then showed an alert, instead of checking before offering the action.

System complexity

System complexity

A reliable closing has to hold all of this at once.

A reliable closing has to hold all of this at once.

Several registers open at once

Each one closes on its own, inside the same shift.

Each one closes on its own, inside the same shift.

Orders and tables pending payment

They can still be open when someone starts closing.

They can still be open when someone starts closing.

Billing state

Unbilled sales and invoices that failed against the tax authority.

Unbilled sales and invoices that failed against the tax authority.

Configurable reconciliation

Each venue sets up its count differently.

Each venue sets up its count differently.

Two sources of truth

What Cactus recorded has to match external payment systems.

What Cactus recorded has to match external payment systems.

Role-based permissions

Who can close what depends on the role.

Who can close what depends on the role.

The case that broke everything else

The case that broke everything else

A register closed before the operation around it was actually finished.

A register closed before the operation around it was actually finished.

None of that is solved by making the screens clearer. It’s solved by defining which states are legal and which transitions between them are allowed.

None of that is solved by making the screens clearer. It’s solved by defining which states are legal and which transitions between them are allowed.

Validation hierarchy

Validation hierarchy

Each step resolves completely before the next one is offered.

Each step resolves completely before the next one is offered.

The flow is a consequence of the state model, not the other way around.

The flow is a consequence of the state model, not the other way around.

The flow is a consequence of the state model, not the other way around.

01

01

Pending orders & tables

Unpaid orders and open tables are cleared first.

Unpaid orders and open tables are cleared first.

Embedded Express Checkout

Opens inside the closing. Nobody leaves the flow.

02

02

Billing integrity

Unbilled sales and failed invoices are resolved.

Unbilled sales and failed invoices are resolved.

Transient failures retry

In the background. Only real ones reach the cashier.

03

03

Reconciliation & cash count

POS and drawer totals matched against recorded sales.

POS and drawer totals matched against recorded sales.

Discrepancies are surfaced, not blocking

The difference is recorded and attributable.

?

?

Is this the last open register?

No: the register closes on its own. Yes: the shift is verified as a whole.

No: the register closes on its own. Yes: the shift is verified as a whole.

04

04

Clean multi-cash finalization

No pending payments, billing confirmed, every register reconciled.

No pending payments, billing confirmed, every register reconciled.

The check that removes the reopen loop

A closed register stays closed.

05

05

Shift closing

Confirmation only. No validation left to run.

Confirmation only. No validation left to run.

The flow

The flow

What the cashier sees, in order.

What the cashier sees, in order.

Problems are resolved where they’re found. The last screen is now the least interesting one, and it used to be where everything went wrong.

Problems are resolved where they’re found. The last screen is now the least interesting one, and it used to be where everything went wrong.

Problems are resolved where they’re found. The last screen is now the least interesting one, and it used to be where everything went wrong.

01 · Express Checkout, inside the closing

When a closing starts, the system checks pending orders and unpaid tables first. If it finds any, an Express Checkout opens inside the closing and the payment is completed there. Nobody leaves the flow, nobody starts again. Anything outside its scope hands off to the full checkout, then returns to the closing.

When a closing starts, the system checks pending orders and unpaid tables first. If it finds any, an Express Checkout opens inside the closing and the payment is completed there. Nobody leaves the flow, nobody starts again. Anything outside its scope hands off to the full checkout, then returns to the closing.

Pending orders

Unpaid tables

Paid inside the flow

02 · Billing is verified before counting

Once payments clear, the system checks billing: unbilled sales and invoices that failed against the tax authority. Failed operations retry in the background first, so only what’s still broken reaches the cashier. This layer didn’t exist before. A shift could close with unbilled sales inside it and nothing in the product would say so.

Once payments clear, the system checks billing: unbilled sales and invoices that failed against the tax authority. Failed operations retry in the background first, so only what’s still broken reaches the cashier. This layer didn’t exist before. A shift could close with unbilled sales inside it and nothing in the product would say so.

Unbilled sales

Failed invoices

Background retry

03 · Reconciliation against what was recorded

With payments and billing resolved, the closing moves to counting. The cashier enters the totals from the POS terminals and the cash in the drawer. The system compares them with what it recorded and shows the difference before the closure is confirmed. A register that doesn’t balance still closes, with the difference on the record.

With payments and billing resolved, the closing moves to counting. The cashier enters the totals from the POS terminals and the cash in the drawer. The system compares them with what it recorded and shows the difference before the closure is confirmed. A register that doesn’t balance still closes, with the difference on the record.

POS terminals

Cash in the drawer

Recorded sales

04 · The last register checks the whole shift

When the register being closed is the last active one, the system verifies the whole shift: no pending payments anywhere, billing confirmed, every register reconciled. That check is what makes the rule real. Shift closing no longer has to reach back into registers that are already closed.

When the register being closed is the last active one, the system verifies the whole shift: no pending payments anywhere, billing confirmed, every register reconciled. That check is what makes the rule real. Shift closing no longer has to reach back into registers that are already closed.

No pending payments

Billing confirmed

Every register reconciled

05 · Shift closed, with a note for tomorrow

With everything validated upstream, shift closing became a confirmation instead of an investigation. It runs one structured verification pass, confirms integrity, and takes optional notes for whoever opens tomorrow. It’s the least interesting screen in the flow now. It used to be where everything went wrong.

With everything validated upstream, shift closing became a confirmation instead of an investigation. It runs one structured verification pass, confirms integrity, and takes optional notes for whoever opens tomorrow. It’s the least interesting screen in the flow now. It used to be where everything went wrong.

Verification pass

Integrity confirmed

Notes for the next shift

Decisions

Decisions

Five calls, and what I said no to.

Five calls, and what I said no to.

Most of them were made in conversation with engineering, not in Figma.

Most of them were made in conversation with engineering, not in Figma.

Most of them were made in conversation with engineering, not in Figma.

01

01

Where problems get resolved

Where problems get resolved

Chose

Chose

Bring the resolution into the closing flow.

Bring the resolution into the closing flow.

Rejected

Rejected

Keep the redirect, and return the user to the exact point they left.

Keep the redirect, and return the user to the exact point they left.

Why

Why

The cashier isn’t lost. They’re holding an unfinished closing in their head while the system sends them somewhere else.

The cashier isn’t lost. They’re holding an unfinished closing in their head while the system sends them somewhere else.

02

02

A second payment surface

A second payment surface

Chose

Chose

Express Checkout: a reduced checkout inside the closing.

Express Checkout: a reduced checkout inside the closing.

Rejected

Rejected

Only one checkout in the product.

Only one checkout in the product.

Why

Why

I accepted two places where a payment can be taken, both kept in sync, to keep the closing intact.

I accepted two places where a payment can be taken, both kept in sync, to keep the closing intact.

03

03

Failed invoices

Failed invoices

Chose

Chose

Retry silently first, surface only what’s still broken.

Retry silently first, surface only what’s still broken.

Rejected

Rejected

Show every billing failure to the cashier.

Show every billing failure to the cashier.

Why

Why

Most failures are transient. A warning everyone learns to dismiss is worse than none, because it still looks like a control.

Most failures are transient. A warning everyone learns to dismiss is worse than none, because it still looks like a control.

04

04

A drawer that doesn’t balance

A drawer that doesn’t balance

Chose

Chose

Surface the discrepancy and record it.

Surface the discrepancy and record it.

Rejected

Rejected

Block the closing until it matches.

Block the closing until it matches.

Why

Why

The venue is shutting either way. What the system owes the business is a difference that’s recorded and attributable.

The venue is shutting either way. What the system owes the business is a difference that’s recorded and attributable.

05

05

When to check

When to check

Chose

Chose

Verify conditions before offering the action.

Verify conditions before offering the action.

Rejected

Rejected

Alert after the user hits the wall.

Alert after the user hits the wall.

Why

Why

Proactive checks change what the interface has to say, and when. That’s a design decision, not an engineering one.

Proactive checks change what the interface has to say, and when. That’s a design decision, not an engineering one.

States & edge cases

States & edge cases

The closing has to work on the bad nights too.

The closing has to work on the bad nights too.

Pending order at closing

Express Checkout opens in the flow. Nobody restarts.

Express Checkout opens in the flow. Nobody restarts.

Invoice rejected by the tax authority

Retried in the background. Only a persistent failure reaches the cashier.

Retried in the background. Only a persistent failure reaches the cashier.

Drawer doesn’t balance

The difference is recorded against the register. The closing continues.

The difference is recorded against the register. The closing continues.

Another register still open

This register closes on its own. The shift waits for the last one.

This register closes on its own. The shift waits for the last one.

Last open register

The whole shift is verified: payments, billing, every register reconciled.

The whole shift is verified: payments, billing, every register reconciled.

Payment outside Express scope

Hands off to the full checkout, then returns to the closing.

Hands off to the full checkout, then returns to the closing.

With engineering

With engineering

The most useful thing I produced wasn’t a screen.

The most useful thing I produced wasn’t a screen.

It was the state and transition model, written down in one place: which states a register and a shift can be in, which transitions are legal, how background retries behave while a cashier waits, and how registers stay in sync when several are open. The team stopped resolving the same ambiguity three different ways in three implementations.

It was the state and transition model, written down in one place: which states a register and a shift can be in, which transitions are legal, how background retries behave while a cashier waits, and how registers stay in sync when several are open. The team stopped resolving the same ambiguity three different ways in three implementations.

It was the state and transition model, written down in one place: which states a register and a shift can be in, which transitions are legal, how background retries behave while a cashier waits, and how registers stay in sync when several are open. The team stopped resolving the same ambiguity three different ways in three implementations.

What I took from it

What I took from it

In financial software, architecture is the user experience.

In financial software, architecture is the user experience.

Hierarchy beats coverage.

Hierarchy beats coverage.

The old flow validated almost everything it needed to. It just did it in an order that let two checks contradict each other.

The old flow validated almost everything it needed to. It just did it in an order that let two checks contradict each other.

A record that can be reopened isn’t a record.

A record that can be reopened isn’t a record.

The reopening wasn’t a workaround around the design. It was the design admitting it couldn’t guarantee what it claimed.

The reopening wasn’t a workaround around the design. It was the design admitting it couldn’t guarantee what it claimed.

Proactive checks are a design decision.

Proactive checks are a design decision.

Verifying before offering an action, instead of alerting after, changes what the interface says and when.

Verifying before offering an action, instead of alerting after, changes what the interface says and when.

Nobody will see the state model.

Nobody will see the state model.

They’ll feel it as whether the closing works the first time, at one in the morning.

They’ll feel it as whether the closing works the first time, at one in the morning.

How we’re measuring it

How we’re measuring it

Some of it is guaranteed by construction. The rest needs measuring.

Some of it is guaranteed by construction. The rest needs measuring.

It’s worth keeping the two apart.

It’s worth keeping the two apart.

It’s worth keeping the two apart.

Guaranteed by construction

Guaranteed by construction

Reopening a closed register goes from routine workaround to edge case.

Reopening a closed register goes from routine workaround to edge case.

Pending payments and failed invoices are caught before reconciliation, not after.

Pending payments and failed invoices are caught before reconciliation, not after.

Every closed register is reconciled. Where there’s a difference, it’s on the record.

Every closed register is reconciled. Where there’s a difference, it’s on the record.

Shift closing runs one structured pass instead of reactive alerts.

Shift closing runs one structured pass instead of reactive alerts.

What we measure

What we measure

Reopen events per venue, per month

Reopen events per venue, per month

Should trend to zero. The cleanest test of whether the architecture holds.

Should trend to zero. The cleanest test of whether the architecture holds.

Support tickets mentioning shift closure

Support tickets mentioning shift closure

Before and after.

Before and after.

Time from starting a cash closing to confirming it

Time from starting a cash closing to confirming it

Shifts closing with unresolved billing

Shifts closing with unresolved billing

Zero by design, which is why it’s worth measuring.

Zero by design, which is why it’s worth measuring.

[metric pending] Support tickets about shift closing, before and after launch, from production data.

[metric pending] Support tickets about shift closing, before and after launch, from production data.

Beyond Shift & Cash

Beyond Shift & Cash

One module of many.

One module of many.

While the Shift & Cash re-architecture was a critical milestone, my work at Cactus extended across multiple operational modules within the platform.

While the Shift & Cash re-architecture was a critical milestone, my work at Cactus extended across multiple operational modules within the platform.

While the Shift & Cash re-architecture was a critical milestone, my work at Cactus extended across multiple operational modules within the platform.

Cactus platform screen
Cactus platform screen
Cactus platform screen
Cactus platform screen
Cactus platform screen

If closing the day is the hard part, let’s talk.

If closing the day is the hard part, let’s talk.

Copy email

Copy email

All contact details

© 2026 Marcos Di Julio

© 2026 Marcos Di Julio

Based in Buenos Aires

Based in Buenos Aires