Founder’s Journey · Episode 4
In the last episode, I mentioned that the next chapter of the journey would focus on the Compliance Engine.
But before we get there, I need to step back for a moment.
Because while working on integrations for POS systems and payroll applications, I stumbled onto something much bigger.
It was an idea that changed the direction of the entire architecture.
An idea that eventually led us to what we now call App-from-Within.
Looking Beyond Integration
In the previous episode, I explained how the Accounting Engine could integrate with existing systems.
For example, a business might already have a Point-of-Sale system generating daily sales reports.
Instead of replacing that POS system, we could create a POS Register, import the data, and use Source Rules and Posting Rules to automatically generate accounting entries.
The same principle applied to payroll.
A Payroll Register could receive payroll information and automatically generate the corresponding accounting transactions.
It worked well.
So well, in fact, that it raised a much bigger question.
If we could define the books required to receive information from a POS system…
Why not just build the POS system itself?
The Question That Changed Everything
The more I thought about it, the more the answer seemed obvious.
We already had Books.
We already had Columns.
We already had Source Posting Rules.
Those were the same core building blocks most business applications rely on.
So instead of asking:
How do we integrate with another application?
I started asking:
What would it take to build the application directly from within the Accounting Engine?
That single question led to one of the most significant enhancements in the platform.
The introduction of BookActions.
Introducing BookActions
Books were already capable of storing information.
What they could not do yet was perform business processes.
BookActions changed that.
A BookAction allows users to define actions that can be performed on records within a book.
Examples include:
- Generate an invoice
- Create accounting entries
- Issue a receipt
- Perform calculations
- Update related books
- Generate compliance records
- Launch workflows
In simple terms, BookActions transformed Books from passive data containers into active business components.
Together, Books and BookActions became the foundation of something larger than accounting.
They became the foundation of applications.
This concept became known internally as App-from-Within.
Applications built from within the Accounting Engine itself.
Building a Beauty Salon Application
To test the idea, I chose a business that was familiar, practical, and easy to visualize.
A beauty salon.
At first glance, a beauty salon seems very different from accounting.
But when we break down the operations, the pattern becomes clear.
The business needs:
- A list of stylists
- A list of services
- A way to record services performed
- A way to bill customers
- A way to manage product sales
- A way to calculate stylist commissions
- A way to process payroll
Those requirements translated naturally into Books.
For example, the Invoice Register could contain:
- Stylist Master List
- Price List
- Ticket
- Invoice
The Stylist Master List stores information about service providers, including commission rates.
The Price List stores available services and their corresponding prices.
The Ticket records services rendered to a customer.
The Invoice represents the final document that the customer pays.
This is how the concept looked in practice: the Invoice Register brought together the stylists, the service price list, and the ticketing flow into a single operational view.

The Price List also became a critical part of the workflow. It gave the business a single source of truth for services, pricing, and duration.

At that point, the pieces were already falling into place.
Turning Tickets into Invoices
Imagine a customer entering the salon.
The customer receives several services from one or more stylists.
As services are completed, they are recorded in the Ticket.
By the time the customer reaches the cashier, all services have already been captured.
The cashier does not need to re-enter the information.
The cashier simply clicks:
Generate Invoice
A BookAction executes.
The Invoice is created automatically.
The invoice is printed.
The customer pays.
The ticket itself was the operational input to the Invoice Action. It captured the services rendered, the products sold, and the commission logic before the final invoice was generated.

The Accounting Engine automatically evaluates the configured Source Rules.
- The corresponding accounting entries are generated.
- Sales are recorded.
- Taxes are recognized.
- The General Ledger is updated.
Without realizing it, we had effectively built a simple Point-of-Sale application.
Not as a separate product.
But entirely from within the Accounting Engine.
Adding Inventory to the Same Framework
Naturally, another question appeared.
What about products?
Many salons do not only sell services.
- Hair products.
- Conditioners.
- Beauty products.
- Shampoos.
- Cosmetics.
Fortunately, the architecture already provided the answer.
We simply introduced additional Books.
- A Product Master List.
- A Stock Book.
- Inventory-related Books.
When a product is sold trough an invoice:
- Inventory is reduced
- Stock movement is recorded
- Sales are recognized
- Accounting entries are created
The same framework handled everything.
No special inventory subsystem was required.
No separate POS architecture was required.
The same model extended naturally into inventory management, where stock movements, ownership, and cost tracking became part of the same workflow.

Just Books, Actions, Sources, and Rules working together.
When Payroll Entered the Picture
The next challenge involved stylist commissions.
Many salon businesses compensate stylists based partly on services rendered.
Every completed service may generate a commission.
Those commissions eventually become part of payroll.
This is where the architecture became even more interesting.
The Ticket already knows which stylist performed the service.
The Invoice already knows how much revenue was generated.
The Stylist Master already knows the commission rate.
That means the system already has everything needed to calculate commissions.
The commission earnings can flow directly into the Payroll Register.
For stylists who are employees, those commissions become part of payroll compensation.
For independent contractors or part-time service providers, different rules can be applied.
The important thing is that all information already exists within the ecosystem.
There is no need to duplicate data.
There is no need to re-enter information.
Everything flows naturally from one register to another.
The Payroll Challenge
As payroll capabilities expanded, a new question emerged.
Should the system simply record payroll information?
Or should it calculate payroll as well?
Initially, it would have been easy to leave the calculations to external payroll applications.
But that felt incomplete.
The vision of App-from-Within suggested something different.
What if payroll calculations could happen inside the platform?
What if statutory deductions could be computed automatically?
What if the system could calculate:
- SSS Contributions
- PhilHealth Contributions
- Pag-IBIG Contributions
- Withholding Taxes
without requiring external spreadsheets or calculators?
The more we explored the idea, the more it became clear that this functionality belonged in the platform.
Not merely as accounting logic.
But as compliance logic.
And that realization opened an entirely new chapter.
At that point, the platform was no longer just accounting machinery. It was becoming a working business operating system, capable of capturing sales, managing stock, calculating payroll, and applying statutory deductions automatically.

The Road to the Compliance Engine
What started as an Accounting Engine had already evolved significantly.
Books made data configurable.
Columns made structures flexible.
Sources translated business events.
Posting Rules automated accounting.
BookActions enabled applications.
Registers connected business processes.
Payroll introduced statutory calculations.
And suddenly we found ourselves dealing with a different challenge altogether.
Not accounting.
Not payroll.
Not invoicing.
Compliance.
Because calculating obligations is only the beginning.
Businesses also need to track them.
Monitor them.
And comply with ever-changing regulatory requirements.
That realization led directly to the next major milestone in the journey.
And that is the story of Episode 5: The Compliance Engine.
