Skip to main content

How do I set up a salary structure?

List the parts pay is made of — basic salary, allowances, deductions, employer contributions — and how each is worked out.

A salary structure is the recipe for a payslip: the components pay is built from, in order. Employees on the same terms share one structure; each person's own figures go on their contract.

Go to Employees → Setup and click Salary Structures. Open a structure, or click New and name it.

The Standard Employee salary structure with the Component, Code, Amount Type and Formula columns marked 1 to 4

On the Components tab, click Add an item for each component:

  1. Component — its name on the payslip, such as Housing Allowance. Set its Type: Base and Allowance add to gross pay, a Deduction is taken off it, an Employer Contribution is a cost to you that doesn't change the employee's net pay.
  2. Code — a short name without spaces, such as housing. Later components can use it in their own calculation.
  3. Amount Type — how the amount is worked out (below).
  4. Formula — the calculation, for the Code amount type.
Amount TypeThe amount is
FixedA set figure — each employee's own, entered on their contract (or the Default Amount).
PercentageA percentage (%) of another component's code, or of the wage — such as a pension of 5% of basic.
BracketA tax table applied to an amount — see How do I use my country's tax rules in payroll?
Quantity × RateA quantity (Qty), such as hours of overtime, times a rate.
CodeA formula. It can use the earlier components' codes, the amounts the employee's contract states for its fixed components (such as basic, even in an end-of-service structure), basic_wage (see below), the period's figures — wage, working_days, paid_days, worked_hours, hourly_rate, overtime_hours, overtime_amount — your payslip input types, such as bonus, and your tax tables.

Two formulas worth knowing:

  • wage * paid_days / working_days — the salary reduced for unpaid time off.
  • overtime_amount — the approved overtime for the period, valued at each claim's category rate. Without a component like this, approved overtime is shown on the payslip but not paid.

Drag the rows into the order they should be calculated: a component can only use the codes above it.

Every contract on the structure has a line for each of its components. A component you add appears on all of them — at its Default Amount if it is Fixed, so set that first, or type each employee's figure on their contract afterwards. A component you remove disappears from them.

A structure's amounts — a Default Amount, and the rate of a Quantity × Rate component — are in your company's currency. A contract that pays in another currency takes their equivalent at the exchange rate: the default when its line is added, the rate on each payslip.

What counts as the basic wage

End-of-service pay and leave salary are worked out on the basic wage, the code their formulas use. It is the basic component, plus whatever Basic Wage Includes (by Law) lists on a Standard structure — in Bahrain, the social allowance. If your company counts more as basic — housing, or housing and transport — while still showing them as separate lines on the payslip, pick those components in Also Counts as Basic Wage. You can set it on a Standard structure too.

A formula is checked when you save: a name that isn't one of these — a misspelt code, or an input type that hasn't been added — is refused, and the message names it.

➡️ Next: How do I set up an employee's contract?

Was this article helpful?