Enterprise Multi-Company Workforce & Payroll OS

Orchestrate HR, Attendance, and Dynamic Payroll with Absolute Precision.

Karnegar provides strict multi-company isolation, immutable snapshot calculations, flexible shift calendars (Jalali & Gregorian), and dynamic formula-driven compensation.

Strict Multi-Tenant Isolation
Dual Jalali & Gregorian Support
Immutable Snapshot Payroll
Karnegar Gateway Hub
--:--:--
AS
Ali Sadeghi
Senior Software Engineer • Tech Dept
Clocked In
Monthly Hours
168.5 hrs
Leave Left
14.5 days
Latest Net
$3,420
99.99%
Snapshot Calculation Accuracy
< 50ms
Formula Engine Resolution
100%
PostgreSQL Multi-Tenant Isolation
Dual-Cal
Jalali & Gregorian Shift Engine
Modular Architecture

Six Core Engines. Unified Under One Platform.

Every domain in Karnegar is built as an independent, domain-driven module with clean boundaries, zero leakage, and high-performance execution.

01

HR & Organization Hierarchy

Hierarchical departments, dynamic position contracts, employee lifecycle tracking, and non-overlapping contract history.

  • Hierarchical Department Tree
  • Position-bound Employment Contracts
  • Zero Physical Delete Audit Policy
Explore SpecificationsHR & Org
02

Smart Shifts & Attendance Engine

Biometric API synchronization, cross-midnight night shifts, grace periods, lateness, overtime, and automatic calendar overrides.

  • Immutable Raw Log Ingestion
  • Dual Jalali & Gregorian Calendar Engine
  • Leave & Attendance Correction Workflows
Explore SpecificationsTime & Attendance
03

Dynamic Compensation & Payroll

Dynamic salary components, safe formula engine, per-child & multiplier calculators, with immutable snapshot finalization.

  • Component Inheritance & Overrides
  • Safe Custom Expression Formula Engine
  • Permanent Snapshot Payroll Records
Explore SpecificationsCompensation
04

Configurable Approval Workflows

Multi-stage state-machine workflows for leave, loan advances, shift changes, and final payroll executive authorization.

  • Multi-Tier Approver Hierarchy
  • Auto-escalation & SLA Timers
  • Event-driven State Machine
Explore SpecificationsWorkflow OS
05

Loans, Advances & Insurance

Comprehensive employee loan lifecycle, automated payroll installment deductions, and supplementary insurance tracking.

  • Automated Payroll Installment Deductions
  • Flexible Salary Advance Requests
  • Supplementary Insurance Tiers
Explore SpecificationsBenefits
06

Payroll Accounting & Reports

Automatic double-entry journal vouchers from finalized payroll snapshots, plus visual custom report builder with dynamic exports.

  • Automatic Journal Voucher Generation
  • Custom Report Builder & Controlled Datasets
  • Multi-Format Bulk Export (Excel, CSV, PDF)
Explore SpecificationsAccounting
Interactive Engine Sandbox

Experience Dynamic Formulas & Approvals in Real Time

Test how Karnegar evaluates dynamic salary components, dependency chains, and workflow state machines without writing a single line of backend code.

Dynamic Formula Evaluator

Safe Expression Parser with dynamic variable inheritance

Base Contract Salary$4,200
Overtime (Hours)16 hrs (x1.4 rate)
Children Count (Per-child formula)2 children
Performance Multiplier15% % of Base
Formula Equation:Net = Base + Children + Overtime + Bonus - Deductions
Child Allowance
+$500
Overtime Pay
+$588
Bonus Multiplier
+$630
Loan & Insurance
-$450
Final Calculated Net Salary
Locked as immutable snapshot on finalization
$5,468

Workflow Pipeline

Configurable Multi-Stage State Machine

In Review
Annual Leave Request #REQ-80423 Days

Employee: Sarah Tavakoli (Finance Lead) • Jalali: 1403/06/15 - 1403/06/18

Leave Request Submitted
Employee Portal Action
Approved
2
Department Head Approval
Direct Line Manager
Pending
3
HR & Calendar Impact Check
HR Operations
Queued
4
Finalized & Calendar Updated
Automated Event Sync
Queued
Enterprise Reliability & Compliance

Architected for High Stakes, Zero Leakage

Engineered following strict Domain-Driven Design principles, tenant isolation contracts, and compliance guarantees for organizations of any scale.

Strict Multi-Company Tenancy

Architecture: Modular Monolith

Company is the atomic tenant boundary. Users can belong to multiple companies with distinct roles, but queries are strictly scoped at the repository layer to prevent cross-tenant data leaks.

Technical Invariant:
Company-scoped PostgreSQL isolation with tenant session context injection.

Snapshot-Based Immutability

Payroll: Immutable Snapshots

Finalized payroll periods are converted into read-only, tamper-proof historical snapshots. Future formula or salary adjustments never retroactively corrupt closed accounting periods.

Technical Invariant:
Finalized payroll records are immutable; corrections require explicit adjustment vouchers.

Hierarchical Calendar Engine

Time: Dual Jalali & Gregorian

Supports both Jalali (Solar Hijri) and Gregorian calendars with 4-tier holiday resolution hierarchy: Employee > Department > Company > Global, enabling cross-border teams.

Technical Invariant:
Automatic attendance recalculation triggers upon shift and holiday rule modifications.

Granular Permissions & Audit Trail

Security: RBAC & Audit Trail

Every sensitive mutation (salary modification, role changes, attendance manual adjustments) records before/after state diffs, IP addresses, and user actor context for enterprise compliance.

Technical Invariant:
Immutable audit logs with zero-deletion policy and cryptographically logged state diffs.
Transform Your Organization Today

Ready to Run Workforce & Payroll with Zero Friction?

Join progressive enterprises and multi-company groups who trust Karnegar for airtight attendance tracking, dynamic formula compensation, and automated payroll snapshots.