Founder’s Journey · Episode 3
In the previous episode, I shared why I chose to build an Accounting Engine before a traditional accounting application. The idea was simple: accounting should be a foundation, not an afterthought.
As the engine took shape, I began thinking about businesses that already had systems in place. What if they had a point-of-sale (POS) system, an existing payroll process, or other tools they didn’t want to replace?
After decades of building and integrating business systems, I knew that most organizations don’t replace everything at once. They gradually add systems to solve specific problems: a POS system for sales, a payroll spreadsheet, an HR application, an inventory system, or a custom application built years ago.
The challenge isn’t always finding new software. Often, it’s getting the software a business already relies on to work together.
That realization shaped an important architectural decision behind EZ2B Accountant. Rather than trying to replace every operational system, I wanted the Accounting Engine to receive structured information from a range of systems.
That goal led to four key concepts:
- Books
- Columns
- Sources
- Posting Rules
Together, they would connect business operations to accounting.
Looking Beyond Journal Entries
Traditional accounting systems often begin with journal entries. But most business users don’t think in debits and credits. Cashiers think about sales; payroll teams think about employees and pay periods; store managers think about orders and inventory.
Accounting translates those business events into financial records. So I started asking:
What if accounting entries could be generated automatically from operational data?
To make that happen, the Accounting Engine needed to know where information came from and how to translate it into accounting transactions. That’s where Books, Columns, Sources, and Posting Rules entered the picture.
The POS Example
A POS system was a natural first example. Many retail businesses already use one, and many POS systems can produce a daily sales report, often called a Z Report.
The report formats vary by vendor: column names, layouts, and export files can all differ. Yet the underlying business information is often similar.
A typical Z Report contains values such as:
- Business Date
- Gross Sales
- VAT Sales
- VAT Amount
- Discounts
- Returns
- Cash Sales
- Credit Card Sales
- E-Wallet Sales
- Net Sales
Instead of building a separate custom integration for every POS product, I designed the Accounting Engine around a POS Register. The register is a Book, and its Columns describe the information the business wants to capture from the POS report.
Once the columns are defined, data can be brought in from different sources, including:
- Excel
- CSV
- API integrations
- Existing databases
- Future connectors
The incoming data still needs to be mapped to the Book’s columns, and differences between vendors’ formats still matter. But this approach reduces the need to build a different accounting workflow for every POS vendor: the engine works with the mapped business information in the register.
The Missing Link: Sources and Posting Rules
Importing data is only part of the solution. The next step is turning operational data into accounting records. That’s the role of Sources and Posting Rules.
A Source identifies a type of business event. In the POS example, the system can use a source such as CA-SLS for a cash sale. The Source configuration can define:
- How references are generated
- How descriptions are generated
- Which date is used for posting
- Which Posting Rules apply
The Posting Rules define how the event affects the books. For a cash sale, a rule might debit Cash and credit Sales Revenue and Output VAT, as applicable. A credit sale would use a different source and could post to a receivables account.
When a user imports the sales data, the Accounting Engine applies the configured rules to generate the corresponding journal entries. The entries can then be reviewed as part of the business’s accounting process, instead of being recreated manually for every transaction.
Payroll: The Real Test
The POS example showed how the architecture could work. Payroll was a more demanding test.
A sales transaction may generate only a few accounting entries; a payroll run can generate many. Depending on the employer and payroll setup, a Philippine payroll may include:
- Gross Salaries and Wages
- Employee SSS Contributions
- Employer SSS Contributions
- Employees’ Compensation Contributions
- PhilHealth Contributions
- Pag-IBIG Contributions
- Withholding Taxes
- Salary Loans
- Cash Advances
- Other Deductions
- Net Pay
These items can affect different General Ledger accounts and require different debit or credit entries. As I began defining the payroll Posting Rules, the mapping grew so extensive that it barely fit on one screen.
At first, that looked like a weakness. Then I realized the complexity could be configured once and reused each pay period.
Configure Once, Apply Consistently
This became an important design principle for the Accounting Engine: put complex accounting logic in configuration rather than asking people to recreate it in repetitive work.
Once a Payroll Source is configured, its Posting Rules tell the engine:
- which columns represent salaries
- which columns represent employee deductions
- which columns represent employer expenses
- which columns generate liabilities
- which columns generate tax obligations
The accountant no longer has to reconstruct the accounting treatment for every pay period. Instead, the user processes payroll, and the engine applies the configured rules to generate the corresponding entries. The accountant can focus on reviewing the payroll and its accounting results.
The Payroll Register and Employee Master
Modeling payroll also highlighted its dependency on employee information: contribution settings, tax classifications, benefits, deductions, and employment details. That led to the Employee Master Book, which holds employee information, alongside the Payroll Register, which holds transactions for each pay cycle.
Together, they form a payroll framework. The Payroll Register can draw on employee information and provide the transaction data needed by the Posting Rules, helping keep payroll and accounting records aligned.
A Philippine Reality
Working through payroll requirements also brought a local operating reality into focus. In larger organizations, Human Resources and Payroll are often separate functions. In many Philippine micro, small, and medium enterprises (MSMEs), payroll responsibilities may sit primarily with Accounting.
HR may focus on:
- Hiring
- Employee records
- Disciplinary matters
- Employee movement
Accounting may handle:
- Payroll preparation
- Government deductions
- Tax withholding
- Payments
- Remittances
The responsibilities vary by organization, but payroll is not only an employee-management task; it also has financial and regulatory dimensions. Payroll runs generate accounting transactions, deductions create liabilities, and remittances carry compliance obligations.
That realization pushed the architecture in an unexpected direction.
The Unexpected Evolution
Originally, I thought payroll would simply generate accounting entries. But recording a liability doesn’t show whether it has been paid or remitted. Payroll can also involve obligations to SSS, PhilHealth, Pag-IBIG, and tax authorities, each with its own deadlines and processes.
Businesses need more than a record of what is owed; they also need a way to track what has been filed, paid, and completed. Accounting and compliance were more closely connected than I had first assumed, and the architecture needed to evolve again.
Looking Ahead
What began as an accounting engine was becoming something larger. Books and Columns describe business information; Sources identify business events; and Posting Rules translate those events into accounting transactions. Together, they offered a way to connect sales, payroll, and other business processes without building a separate accounting workflow for each one.
Payroll introduced a further challenge: recording a liability is one thing; tracking whether it has been filed, paid, and completed on time is another. That challenge would lead to the next major milestone in the journey.
And that’s the story of Episode 4: The Compliance Engine.
