Construction / engineering / design companies · Model implementation / anonymous example
Automation of KSeF and Comarch Optima invoices for construction company
Cost invoice system: import from KSeF, assignment to the project, acceptance of the manager, sharing of costs and preparation of data to Comarch Optima.
The company implementing many construction projects needed to organize the process from the impact of the invoice with KSeF, by assigning the cost to the construction, to the acceptance of the project manager and to transfer the document to accounting.
Business problem
The process was based on e-mails, sheets, phones and manual assignment of invoices to projects. The biggest challenge was to control the status, cost, responsible person and the readiness of the document to handle at Comarch Optima.
Example values to be verified during pre-implementation analysis
Up to 60-80%fewer manual messages in the process40-70%shorter invoice approval time in the model scenario1st placeto check the status of documentsFull storydecisions, comments and status changes
Indicative values. Actual results depend on the number of documents, the current process, data quality and the scope of integration.
Client context
Construction company with multiple projects and distributed approval process
The model client has multiple investments at the same time. Each construction generates costs of materials, subcontractors' services, transport, equipment rental, technical purchases and administrative costs.
The biggest challenge is not just posting the invoice, but determining which construction the cost applies to, who should accept it, whether the document is consistent with the order and whether accounting has all the information for assignment.
Business problem
Invoices circulated between departments and the document status was not visible in one place
Before implementation, the process was based on multiple communication channels: e-mails, spreadsheets, telephones and manual description of documents. Any ambiguity stopped the invoice and required additional determination.
Single invoice register missing
Documents go to different boxes, folders and sheets. It is difficult to quickly determine which invoices are new, accepted or stuck in the process.
Manual assignment to projects
The cost must be associated with construction, order or MPK. Without common dictionaries, it is easy for the description to be incomplete or for the document to be returned for correction.
Delays in approval
The project manager receives questions by e-mail or phone, and accounting does not see where exactly the document stopped.
No decision history
Acceptances, corrections and comments are scattered throughout the messages. Over time, it is difficult to reconstruct who made the decision and why.
Difficult split of costs
One invoice may cover several construction sites. Without validation of sums and distribution history, the risk of ambiguity in allocation increases.
Risk of errors when assigning
Accounting receives documents with a missing description, an incomplete project or without confirmation from the responsible person.
Timely reports
Design costs are only visible after manual data collection. Management does not have a current view of pending invoices.
Dependency on Excel and emails
Spreadsheets help in the beginning, but when there are larger numbers of documents, they make it difficult to control versions, statuses and responsibilities.
Animated invoice workflow
From an invoice with KSeF to a ready document for accounting
Click on a step to see the responsible role, approximate time and step description. The animation is calm and shows the logic of the process, not the guaranteed service time.
Cost invoiceKSeF / invoice import
KSeF / invoice import
The document is entered into the invoice register with basic data and source of origin.
KSeFautomatic
Solution SmartCodeIT
Dedicated invoice workflow connected to KSeF, projects and Comarch Optima
The application acts as the operational layer between KSeF, business users, and the accounting system. It does not replace Comarch Optima, but organizes the stage before accounting: document description, approvals, history, cost split and data preparation.
downloading invoices from KSeFcentral document registerproject assignmentlink to ordermanager approvalcost splitaccounting panelcost dashboard
Time calculator
How much time can automation of invoice circulation save?
The calculator shows an approximate amount of time that can be recovered by reducing manual activities. This is not a guaranteed financial result.
66,7 hsavings per month800 hsavings per year$1,405time values per month$16,867time values per year
Example: 800 invoices × 5 min savings on the invoice gives approx 66,7 hours per month. The actual effect depends on the process, integration and team work.
KSeF and Comarch Optima
The system does not replace ERP, it only complements the process before posting
Comarch Optima remains an accounting system or ERP. The dedicated SmartCodeIT application can act as an operational layer in which users describe the invoice, accept the cost and prepare the document for accounting.
Mode 1
MVP / data export
The system prepares data in a structured format and accounting imports it or transcribes a limited range of information.
Mode 2
Semi-automatic integration
Data goes to swap files, an intermediate database or an import queue, reducing manual operations.
Mode 3
Advanced integration
The system communicates with ERP via API or a dedicated connector if the client's environment and technical requirements allow it.
KPI table before / after
How to measure whether a workflow is performing better?
Area
Before implementation
After system implementation
How to measure
Invoice status
Email / Excel / telephone inquiries
One status in the system
Number of invoices without status
Acceptance time
A few days and manual reminders
Shorter, controlled workflow
Average time from receipt to acceptance
Project description
Manual, often incomplete
Required fields and dictionaries
Number of invoices reversed for completion
Cost allocation
Findings outside the system
Amount or percentage division in the application
Number of split invoices
Accounting work
Inquiring about deficiencies
Documents with complete data
Number of inquiries to departments
Reporting
Manual reports
Project Costs Dashboard
Report preparation time
Security and permissions
Access control is part of the process, not an add-on
In invoice circulation, security means protecting files, but also controlling who can see the document, accept the cost, change accounting data or start export.
user rolesproject permissionschange historylogi audytowedocument access controlMicrosoft Entra IDbackupstest / productionon-premises or cloud deployment
No sensitive customer data
This case study presents an anonymized, model implementation scenario based on the typical needs of construction and design companies. It does not contain customer names, financial data or information identifying a specific organization. All indicators and calculations are indicative and should be confirmed during pre-implementation analysis.
Implementation objectives
What should the system sort out?
automatic or semi-automatic collection of invoices from KSeF
linking the invoice to the design, construction or order
possibility of sharing costs between several projects
acceptance path for project managers
accounting panel to decree and export to Optima
history of changes, decisions and comments
Range SmartCodeIT
What does design work involve?
analysis of the logistics process, project managers and accounting
design roles, powers and acceptance paths
model of invoices, designs, orders and decrees
MVP Web application design
preparation of KSeF and Comarch Optima integration or data export
dashboard statuses and cost reports
Before and after implementation
What is changing in the way the team works?
The most important difference is not the technology itself. The team moves from manual arrangements, sheets and messages to a process with clear statuses, inputs, case ownership and a place to check for exceptions.
Before
Process distributed across several tools
automatic or semi-automatic collection of invoices from KSeF requires manual control or has no single status.
linking the invoice to the design, construction or order requires manual control or has no single status.
possibility of sharing costs between several projects requires manual control or has no single status.
acceptance path for project managers requires manual control or has no single status.
After MVP
One structured workflow
analysis of the logistics process, project managers and accounting goes into the designed process, tests and documentation.
design roles, powers and acceptance paths goes into the designed process, tests and documentation.
model of invoices, designs, orders and decrees goes into the designed process, tests and documentation.
MVP Web application design goes into the designed process, tests and documentation.
Application modules
Sample screens and functions of the first system.
The scope of modules can be narrowed down to MVP or expanded in subsequent stages after testing with users.
Desktop
Viewing invoices waiting, after the deadline and until the decree.
statusesdeadlinesalertscost of projects
Invoices
Central register of invoices with data of the counterparty, amount and source.
Numbercounterpartyamountsproject
Projects / Construction
Control of accepted and waiting costs for buildings.
budgetcostsmanagerhistory
Orders
Linking the invoice to an earlier order and quota control.
ordervendorcomplianceinvoices
Approvals
Panel project manager with preview, comment and decision.
acceptRejectcommentpass it on
Assignment
The accounting panel for sharing costs and exports to Optima.
accountsMPKexportaccounting status
Reports
Cost reports, acceptance deadlines and burden of persons.
projectscontractorsdelaysacceptance time
Settings
Administration of users, roles, dictionaries and integrations.
rolesstatusesdictionariesintegrations
Implementation process
From audit to development after MVP.
01
Process audit
We map the current course of work, data sources, roles, exceptions and place of manual copying.
02
Process design
We establish statuses, rules, human responsibility, input data, integrations and reception criteria.
03
Prototype
We show the first layout of screens, modules and flow before the full implementation range is created.
04
MVP
We build the most important part of the system that can be tested on actual customer data.
05
Integrations
We combine the application with API, exchange files, databases, accounting systems, CRM, BI or automation.
06
Implementation and development
After the tests we start production, monitor the process and plan further modules.
Technical architecture
System layers that need to be designed consciously.
1
Web application
Next.js / Reactuser panelroles and permissionsstatuses
2
Data
PostgreSQL / MS SQLinvoicesprojectsordershistory
3
Integrations
KSeFComarch OptimaREST APIexchange files
4
Control
audit logsdashboardalertsbackup
Quality control
What must be established for a safe implementation?
In any similar project, automatic steps must be separated from human decisions. Thanks to this, the system helps reduce manual work, but does not hide errors, exceptions and responsibilities.
Data sources
Determine which data is primary and how we handle missing data, duplicates and inconsistencies.
Statuses and owner
Each case should have a stage, a responsible person and a clear moment of reaction.
Logs and alerts
Integration, import, AI or automation errors should be visible in the dashboard or report.
Human approval
High-risk steps, financial documents and contentious decisions require human approval.
Business outcomes
What can be measured after implementation?
shorter invoice time
less manual data re-entry
greater control of project costs
a clear history of acceptance
Faster accounting work
better visibility of costs for the management board
Example KPIs for verification
30-60%potentially less manual transmission of invoices after matching the process1 panelcommon view for logistics, managers and accounting100%invoices with status history in the model process
Next.jsNode.js / .NET / PythonPostgreSQL / MS SQLKSeFComarch Optiman8n / MakeREST API
FAQ
Frequently asked questions before a similar implementation.
Does this system replace Comarch Optim?
No. In most cases it complements Comarch Optima and supports the operating process before booking: acceptance, design assignment, status, workflow and cost control.
Can we start with a small MVP?
Yes. The safest place to start is by importing invoices, assigning to the project, acceptance and accounting panel. OCR, AI and reports can be added later.
Can the system work on the local client server?
Yes. The application can work locally, on VPS or in the cloud. The decision depends on security policy, infrastructure and integration.
Is integration possible with KSeF?
Yes, the system can be prepared to download or support data from KSeF in accordance with the requirements of the customer process.
Can the invoice be divided into several projects?
Yes. The invoice may be broken down by percentage or by quota between several projects if the client's accounting process provides for this.
Do you want to organize a similar process in your company?
SmartCodeIT can help you design your process, prepare MVP and implement an application tailored to your organization. We start with a short conversation about data, tools, exceptions and business purpose.