Skip to content

Payroll rules

A payroll rule captures one country’s payroll, the employee and employer contributions and the income tax, so StaffMargin can turn a salary into its full employer cost. Define it once, attach it to salaries in that country, and every breakdown follows the same rates. You start from a country template, not a blank form, and each rule is versioned so an old salary always reproduces.

The page lists each rule with the country it covers and where it stands.

The Payroll rules table showing each rule, its country, currency, effective date and status

The columns name the Rule and its Country and Currency, the Cadence the rates are quoted in, the Effective from and Ends dates, and the Status. A rule is a Draft while you build it, Published once it is in use, or Archived when retired.

You do not write the rates by hand. In Add payroll rule, pick a country under Prefill from a country and StaffMargin fills the form with that country’s contributions and tax brackets.

The Add payroll rule dialog with the country prefill highlighted

StaffMargin ships templates for priority markets, including North Macedonia, Bulgaria, Romania, Georgia, and Ukraine. The template fills the form with a starting point, and the draft you save is your own copy: review the rates, set the name and effective date, then save. Because the engine is fully declarative, you can also build a rule for any country from the same contribution and tax parts. See employer cost and the salary engine for what those parts mean.

A new rule is created as a draft. You can edit a draft freely while you get the rates right. When it is ready, Publish it.

Publishing locks the version. From then on it is immutable, and a correction or a new tax year creates a new dated version. StaffMargin records which exact version each salary used, so a breakdown you calculated last year does not shift when this year’s rates land. The same idea covers exchange rates in multi-currency and historical rates.

A rule does nothing until a salary points at it. On a salary, set the Payroll rule field to the published rule for that person’s country. StaffMargin then derives the net, gross, and employer cost from the rates in the rule.

Leave a salary’s payroll rule empty and it stays a flat figure, where net, gross, and employer cost are the same number. Attach a rule and the three separate by the taxes and contributions in between.

FAQ

What is a payroll rule?
A country's payroll captured once: its employee and employer contributions and income tax. StaffMargin uses it to turn a salary into net, gross and full employer cost. See employer cost and the salary engine.
Do I have to enter the tax rates myself?
No. Pick a country under Prefill from a country and StaffMargin fills the rates and brackets for you. Review and adjust them, then save. You can also build a rule for any country from scratch.
Which countries have templates?
Priority markets including North Macedonia, Bulgaria, Romania, Georgia and Ukraine, with more over time. The template is a starting point you can edit freely.
Why can I not edit a published rule?
Publishing locks the version so historical breakdowns stay reproducible. A correction or a new tax year is a new dated version, and each salary keeps the exact version it used.
How does a rule affect a salary?
Attach the rule to a salary and StaffMargin derives the net, gross and employer cost from its rates. With no rule, the salary is a flat figure where all three are equal. See salaries.
What is the difference between a draft and a published rule?
A draft is editable while you build it and cannot be used on a salary. Publishing makes it usable and immutable. Retired rules are archived.