Payroll Guide – ERPNext v15 (Payroll / Salary Payout / Tax & Benefits) – NEXTFUTURE
NEXTFUTURE – دليل الرواتب في ERPNext v15

الرواتب: Payroll / Salary Payout / Tax & Benefits

صفحة تدريبية عملية تُغطي إعدادات ومراحل مسير الرواتب من تعريف المكوّنات والهياكل، مرورًا بإنشاء القسائم والدفع، وحتى الضرائب والإعفاءات والمزايا. كل قسم يشرح الهدف وكيفية الاستخدام داخل نفس الفقرة (بدون عنوان فرعي منفصل).

🎯 المستوى: عملي – متوسط/متقدم 🧩 المحور: Payroll & Compliance 🏢 الجهة: NEXTFUTURE

1) نظرة عامة على دورة الرواتب

الغرض من موديول الرواتب هو احتساب وصرف أجور الموظفين بدقة وتتبّع آثارها المحاسبية والضريبية. تبدأ الدورة عادةً بـ تهيئة الماسترز (مكوّنات الراتب، هيكل الراتب، فترة الرواتب، شرائح ضريبة الدخل) ثم تعيين هيكل الراتب للموظفين، وبعدها إنشاء Payroll Entry الذي يُولد Salary Slips ويقوم بالترحيل المحاسبي والدفع. أي بدلات/حسميات إضافية تُسجل عبر Additional Salary أو Employee Incentive، بينما التزامات الحجز تُدار عبر Salary Withholding. الضرائب والإعفاءات تُدار من مساحة Tax & Benefits.

المتطلبات الأساسية:
  • تعريف Company / Branch / Department وربط الموظفين بها.
  • اعتماد Chart of Accounts وحسابات الرواتب (مصروف الرواتب، مخصصات، مستحقات).
  • تحديد العملة، والتقويم/فترة الصرف في Payroll Period.

2) الماسترز الأساسية (Masters)

2.1 Salary Component – مكوّنات الراتب

يُعرّف كل بند يؤثر على الراتب مثل: أساسي، بدل سكن، بدل نقل، حسم غياب… مع نوعه (Earning / Deduction) وصيغته والحساب المحاسبي. المقصود منه ضبط منطق الاحتساب والربط المحاسبي كي يُستخدم لاحقًا داخل Salary Structure.

شاشة تعريف Salary Component في Frappe HR
شاشة تعريف Salary Component – تبويب Overview مع الحقول الأساسية والحسابات.
تبويب Condition & Formula لمكوّن الراتب
إعداد Condition & Formula لمكوّن الراتب وتفعيل Amount based on formula.
  1. اذهب إلى Payroll → Salary Component ثم New.
  2. حدّد النوع (Earning/Deduction)، الحساب، والصيغة (مبلغ ثابت/نسبة/تعExpression).
  3. إن لزم، فعّل Do not include in total للبنود الإعلامية.
نصيحة: امنح كل مكوّن كودًا واضحًا واستخدم الحسابات الصحيحة لتفادي فروقات GL.
2.2 Salary Structure – هيكل الراتب

قالب يضم مجموعة مكوّنات وقواعدها لمجموعة موظفين (مثلاً “شهري – إداري”). يستخدم المكوّنات المعرّفة ويحدد طريقة إسنادها للموظف. الغاية منه توحيد السياسة وربطها بالموظفين لتوليد القسائم تلقائيًا.

شاشة Salary Structure - Earnings و Deductions
مثال على Salary Structure يوضّح بنية Earnings و Deductions مع الأعمدة Abbr و Formula.
Salary Structure للرواتب المبنية على Timesheets
تهيئة Salary Structure يعتمد على Timesheets مع تفعيل Salary Slip Based on Timesheet وتحديد Hour Rate.
  1. Payroll → Salary StructureNew.
  2. اختر Pay Frequency (شهري/أسبوعي) وأضف المكوّنات مع القيم/الصيغ.
  3. احفظ ثم استخدمه في Salary Structure Assignment.
أفضل ممارسة: افصل الهياكل حسب فئات الرواتب (شهري/ساعة/عمولة) وحسب الدول إن وُجد تباين تشريعي.
2.3 Salary Structure Assignment – تعيين هيكل الراتب

يربط الموظف بهيكل راتب معيّن ويحدد تاريخ النفاذ وقيمة البنود المتغيرة (إن وُجدت). القصد منه جعل النظام يعرف أي هيكل يُطبّق على الموظف عند إنشاء القسيمة.

نموذج Salary Structure Assignment في Frappe HR
شاشة Salary Structure Assignment مع الحقول Employee و Salary Structure و Income Tax Slab وقيم Base / Variable.
Payroll Cost Centers ضمن Salary Structure Assignment
إسناد Payroll Cost Centers متعددة لنفس الموظف مع نسب التوزيع.
  1. Payroll → Salary Structure AssignmentNew.
  2. اختر الموظف، الهيكل، تاريخ البدء، وعدّل البنود إن لزم.
  3. احفظ/اعتمد. (للتعيين الجماعي استخدم Bulk Salary Structure Assignment).
2.4 Payroll Period – فترة الرواتب

تحدد بداية ونهاية السنة/الفترة المرجعية التي تُنشأ داخلها إدخالات الرواتب والضرائب. الهدف هو توحيد نطاق الحسابات والتقارير وربطه بالتقويم الضريبي.

  1. Payroll → Payroll PeriodNew.
  2. حدد Company وStart/End Date وربط Holiday List إن لزم.
2.5 Income Tax Slab – شرائح ضريبة الدخل

تعريف الشرائح والنِسَب والحدود المعفاة، وتحديد ما إذا كان الاحتساب سنويًا أو شهريًا. يستخدم في Income Tax Computation وداخل القسائم عند تمكين احتساب الضريبة.

شاشة Income Tax Slab مع جدول الشرائح الضريبية
نموذج Income Tax Slab يوضّح الحقول الأساسية وجدول Taxable Salary Slabs مع From / To / Percent.
Other Taxes and Charges on Income Tax في Frappe HR
جدول Other Taxes and Charges on Income Tax لإضافة ضرائب إضافية مثل Health and Education Cess.
  1. Tax & Benefits → Income Tax SlabNew.
  2. أضف الشرائح (من–إلى) والنسبة والثابت/الإعفاء.
تنبيه: حدّث الشرائح سنويًا وفق تشريعات الدولة.

3) تشغيل الرواتب (Payroll Entry & Slips)

3.1 Additional Salary / Incentives / Withholding

سجّل أي بنود خارج الهيكل مثل مكافأة، خصم غرامة، أو حجز مستحقات. Additional Salary يضيف بندًا واحدًا لموظف معيّن وتاريخ محدد. Employee Incentive لإدارة حوافز قد تكون جماعية. Salary Withholding لحجز جزء من الراتب حتى تاريخ تحرير.

  1. أنشئ Additional Salary وحدد النوع (Earning/Deduction) والمبلغ والفترة.
  2. للحوافز الجماعية استخدم Employee Incentive.
  3. للإيقاف المؤقت: Salary Withholding مع سبب وتاريخ انتهاء.
3.2 Payroll Entry – إنشاء القسائم وترحيلها

هو المستند الجامع الذي يُنشئ Salary Slips للموظفين المحددين ضمن الشركة/الفرع/القسم وخلال فترة معينة، ثم يعتمدها ويولّد قيود GL، ويتابع الدفع. الهدف منه أتمتة الدُفعة كاملةً.

Payroll Entry - Get Employees في Frappe HR
شاشة Payroll Entry مع الحقول الأساسية قبل الضغط على Get Employees لعرض الموظفين المستهدفين.
نموذج Payroll Entry مع قائمة الموظفين
مثال آخر على Payroll Entry يوضّح اختيار Payroll Payable Account وربط قائمة Employee Details.
  1. Payroll → Payroll Entry → حدّد الشركة ونطاق التاريخ والفلاتر.
  2. اضغط Get Employees → راجع القائمة.
  3. Create Salary SlipsSubmit Salary Slip (فردي/جماعي).
  4. Submit Payroll Entry لإنشاء قيود GL تلقائيًا.
  5. اختياري: Create Bank Entry / Payment Entries للدفع البنكي/النقدي.
تلميح: فعّل “Email Salary Slip to Employee” من الإعدادات لإرسال PDF تلقائيًا.
3.3 Salary Slip – قسيمة الراتب

تمثل تفاصيل أجر الموظف لتلك الفترة. تُستمد المكوّنات من الهيكل والتعيين والبنود الإضافية والضرائب. تُعتمد ثم تُرحّل آليًا عبر Payroll Entry أو يدويًا.

  • تحقق من الحضور/الإجازات إذا كان الهيكل يعتمدها في الحساب.
  • راجع صافي الراتب والعملة والخصومات.

4) مساحة Salary Payout – تنفيذ الدفع والتقارير

مساحة العمل “Salary Payout” تجمع الروابط التشغيلية الشائعة: Salary Slip، Payroll Entry، Bulk Salary Structure Assignment، وتقارير الدفع مثل Salary Register وBank Remittance و Salary Payments Based On Payment Mode وSalary Payments via ECS. الهدف منها إنجاز دورة الصرف ومراجعة الدُفعات بسرعة.

4.1 تقارير الدفع الأساسية
  • Salary Register: سجل مجمع لكل موظف/فترة مع المكوّنات والصافي.
  • Bank Remittance: ملف/قائمة تحويلات البنك حسب الحساب/المود.
  • Payments Based on Mode: تحليل حسب طريقة الدفع (تحويل، نقد، شيك).
  • Payments via ECS: توليد/توثيق ملفات ECS إن كانت مدعومة بنكيًا.

5) الضرائب والمزايا – Tax & Benefits

هذه المساحة تُستخدم لضبط الضرائب وإدارة إعفاءات الموظفين ومنافعهم. الفكرة أن الموظف يقدّم Declarations وإثباتات Proof Submission، ويظهر أثرها في Income Tax Computation وتُخصم في القسيمة.

5.1 Tax Setup – الإعدادات الضريبية
  • Income Tax Slab: تعريف الشرائح كما فُصّل أعلاه.
  • Employee Tax Exemption Category / Sub Category: تصنيف أنواع الإعفاء (تعليم، تأمين، سكن…) بحدودها.
5.2 Exemptions – الإقرارات والإثباتات
  • Employee Tax Exemption Declaration: يقرّ الموظف بالعناصر المتوقع المطالبة بها للسنة.
  • Employee Tax Exemption Proof Submission: رفع المستندات الداعمة للتحقق قبل التسوية.
مهم: راجع الفروقات بين “Declaration” و“Proof” قبل إقفال السنة لتفادي فروق تسوية.
5.3 Benefits – المزايا
  • Employee Benefit Application: تقديم طلب ميزة (تأمين صحي، بدل معدات…).
  • Employee Benefit Claim: تسديد المطالبات المرتبطة بالميزة المعتمدة.
5.4 Tax Reports – التقارير الضريبية
  • Income Tax Computation: احتساب الضريبة لكل موظف حسب الشرائح والإعفاءات.
  • Income Tax Deductions: ملخص الاستقطاعات المخصومة فعلًا عبر القسائم.

6) التكامل المحاسبي (الحسابات والقيود)

عند اعتماد Payroll Entry، ينشئ النظام قيود GL تلقائيًا: مدينة على حسابات المصروفات، ودائنة على حسابات الالتزامات (مستحقات رواتب/ضرائب)، ثم تُسدد عبر Payment Entry أو Bank Entry. تأكد من إعداد Accounts Settings وربط كل مكوّن بالحساب الصحيح.

خريطة حسابات شائعة:
  • مصروف الرواتب (P&L) – للبدلات الإيجابية.
  • مخصصات/التزامات الرواتب (B/S) – لصافي المستحق والضرائب.
  • حسابات مزايا أو حجز الرواتب حسب السياسة.

7) استكشاف الأخطاء الشائعة

  • صافي راتب غير متوقع: تحقق من Additional Salary وWithholding وغياب/إجازات.
  • فشل إنشاء القسائم: تأكد من وجود Salary Structure Assignment ساري المفعول خلال الفترة.
  • فروقات GL: راجع حسابات المكوّنات، وعملة الشركة، وتواريخ الاعتماد.
  • ضرائب صفرية: افحص Income Tax Slab وPayroll Period وربط الموظف بالإعفاءات.

8) خطة جلسة تدريبية مقترحة

  1. بناء Salary Components وSalary Structure لسيناريو تجريبي.
  2. تعيين الهيكل عبر SSA لمجموعة موظفين (واحد ثابت + واحد متغير).
  3. إنشاء Additional Salary (مكافأة/حسم) وWithholding لموظف.
  4. تشغيل Payroll Entry كامل: إنشاء القسائم → اعتماد → ترحيل GL → دفع.
  5. استعراض التقارير: Salary Register / Bank Remittance / Income Tax Computation.
صفحة تدريبية موحّدة من إعداد NEXTFUTURE – مسير الرواتب في ERPNext v15 (Payroll / Salary Payout / Tax & Benefits).
NEXTFUTURE – ERPNext v15 Payroll Guide

Payroll: Payroll / Salary Payout / Tax & Benefits

A hands-on training page that covers payroll configuration and processing steps: from defining components and structures, through creating salary slips and payments, all the way to taxes, exemptions, and employee benefits. Each section explains the purpose and how to use it inside ERPNext in the same paragraph.

🎯 Level: Practical – Intermediate/Advanced 🧩 Focus: Payroll & Compliance 🏢 Prepared by: NEXTFUTURE

1) Overview of the Payroll Cycle

The purpose of the Payroll module is to calculate and pay employees’ wages accurately and track all accounting and tax implications. The cycle usually starts with master data setup (salary components, salary structures, payroll periods, income tax slabs), then assigning salary structures to employees, and afterwards creating the Payroll Entry that generates Salary Slips, posts GL entries, and handles payment. Any additional allowances/deductions are recorded using Additional Salary or Employee Incentive, while withheld amounts are managed throughout Salary Withholding. Taxes and exemptions are configured from the Tax & Benefits workspace.

Prerequisites:
  • Define Company / Branch / Department and link employees to them.
  • Finalize the Chart of Accounts and payroll-related accounts (salary expense, provisions, payables).
  • Set the currency and the payroll calendar in Payroll Period.

2) Core Masters

2.1 Salary Component

Defines each element that affects the salary such as: Basic, Housing Allowance, Transport Allowance, Absence Deduction, etc. Each component has a type (Earning / Deduction), formula, and linked account. The idea is to control calculation logic and account mapping so that the component can be reused inside the Salary Structure.

Salary Component form in Frappe HR
Salary Component form – Overview tab with core fields and accounts.
Condition & Formula tab for Salary Component
Condition & Formula setup and enabling “Amount based on formula”.
  1. Go to Payroll → Salary Component and click New.
  2. Set the type (Earning/Deduction), account, and calculation method (fixed amount, percentage, expression).
  3. If needed, enable Do not include in total for informational components.
Tip: Use clear abbreviations and map each component to the correct GL account to avoid GL discrepancies.
2.2 Salary Structure

A template grouping multiple components and rules for a group of employees (for example, “Monthly – Admin”). It uses the previously defined components and specifies how they apply to an employee. The purpose is to standardize the policy and link it to employees so salary slips can be created automatically.

Salary Structure - Earnings and Deductions
Example Salary Structure showing Earnings and Deductions with Abbr and Formula columns.
Timesheet-based Salary Structure
Salary Structure for timesheet-based payroll with “Salary Slip Based on Timesheet” and Hour Rate.
  1. Payroll → Salary StructureNew.
  2. Select Pay Frequency (Monthly/Weekly) and add components with values/formulas.
  3. Save the structure and use it in Salary Structure Assignment.
Best practice: Separate salary structures by pay type (monthly/hourly/commission) and by country when legal rules differ.
2.3 Salary Structure Assignment

Links an employee to a specific Salary Structure and sets the effective date and any variable component values. This tells the system which structure to apply when generating salary slips for that employee.

Salary Structure Assignment form
Salary Structure Assignment with Employee, Salary Structure, Income Tax Slab, and Base/Variable values.
Payroll Cost Centers on Salary Structure Assignment
Assigning multiple Payroll Cost Centers for the same employee with split percentages.
  1. Payroll → Salary Structure AssignmentNew.
  2. Select the employee, structure, start date, and adjust component values if needed.
  3. Save/Submit. (For mass assignment, use Bulk Salary Structure Assignment.)
2.4 Payroll Period

Defines the start and end of the fiscal/payroll period in which payroll entries and tax computations are created. The purpose is to unify reporting ranges and align them with the tax calendar.

  1. Payroll → Payroll PeriodNew.
  2. Select Company, Start/End Date, and link a Holiday List if required.
2.5 Income Tax Slab

Defines tax slabs, rates, and exempt thresholds, and whether the calculation is yearly or monthly. It is used in Income Tax Computation and inside salary slips when tax calculation is enabled.

Income Tax Slab with slab table
Income Tax Slab with core fields and the Taxable Salary Slabs table (From / To / Percent).
Other Taxes and Charges on Income Tax
“Other Taxes and Charges on Income Tax” table for adding extra taxes such as Health and Education Cess.
  1. Tax & Benefits → Income Tax SlabNew.
  2. Add the slabs (From–To), rate, and fixed/exempt amounts.
Note: Review and update tax slabs annually according to local legislation.

3) Running Payroll (Payroll Entry & Slips)

3.1 Additional Salary / Incentives / Withholding

Use these documents to record any items outside the base structure such as bonuses, penalties, or withheld amounts. Additional Salary adds a single earning/deduction for a specific employee and period. Employee Incentive manages incentive schemes which can be applied to multiple employees. Salary Withholding is used to temporarily withhold part of the net salary until a release date.

  1. Create an Additional Salary and specify type (Earning/Deduction), amount, and period.
  2. For group incentives, use Employee Incentive.
  3. For temporary holds, create Salary Withholding with reason and end date.
3.2 Payroll Entry – Generate & Post

The central document that creates Salary Slips for all selected employees within a company/branch/department for a specific period, then submits them, posts GL entries, and coordinates payment. The goal is to automate the entire payroll run.

Payroll Entry - Get Employees in Frappe HR
Payroll Entry with core fields before clicking Get Employees to load the target employees.
Payroll Entry with employee list
Another Payroll Entry example showing Payroll Payable Account and the Employee Details table.
  1. Payroll → Payroll Entry → set company, date range, and filters.
  2. Click Get Employees and review the list.
  3. Run Create Salary Slips then Submit Salary Slip (individually or in bulk).
  4. Submit Payroll Entry to auto-create GL entries.
  5. Optionally: Create Bank Entry / Payment Entries for bank/cash payments.
Tip: Enable “Email Salary Slip to Employee” in payroll settings to automatically email PDF salary slips.
3.3 Salary Slip

Represents the detailed pay for one employee and one pay period. Components are pulled from the structure, assignments, additional salary documents, and tax configuration. The slip is submitted and posted automatically through the Payroll Entry or manually, if needed.

  • Verify attendance/leaves if the structure uses them in calculations.
  • Review net pay, currency, and all deductions before submission.

4) Salary Payout Workspace – Execution & Reports

The “Salary Payout” workspace groups the most frequently used links: Salary Slip, Payroll Entry, Bulk Salary Structure Assignment, and payment-related reports such as Salary Register, Bank Remittance, Salary Payments Based On Payment Mode, and Salary Payments via ECS. The aim is to complete and review salary payments quickly from one place.

4.1 Core Payout Reports
  • Salary Register: Consolidated register per employee/period with all components and net pay.
  • Bank Remittance: File/list for bank transfers grouped by account or payment mode.
  • Payments Based on Mode: Analysis by payment method (transfer, cash, cheque, etc.).
  • Payments via ECS: Generate or track ECS files where supported by the bank.

5) Taxes and Benefits – Tax & Benefits

This workspace is used to configure tax rules and manage employee exemptions and benefits. The idea is that employees submit Declarations and upload Proof Submissions, and their effect appears in the Income Tax Computation and is reflected in the salary slip.

5.1 Tax Setup
  • Income Tax Slab: Define tax slabs as described earlier.
  • Employee Tax Exemption Category / Sub Category: Classify exemption types (education, insurance, housing, etc.) with their limits.
5.2 Exemptions – Declarations and Proof
  • Employee Tax Exemption Declaration: Employee declares the items they plan to claim during the year.
  • Employee Tax Exemption Proof Submission: Employee uploads supporting documents for verification prior to finalization.
Important: Review the differences between “Declaration” and “Proof” before year-end closing to avoid tax adjustment issues.
5.3 Benefits
  • Employee Benefit Application: Employee applies for a benefit (medical insurance, equipment allowance, etc.).
  • Employee Benefit Claim: Settlement of claims linked to an approved benefit.
5.4 Tax Reports
  • Income Tax Computation: Calculates tax per employee according to slabs and exemptions.
  • Income Tax Deductions: Summary of the actual tax amounts deducted through salary slips.

6) Accounting Integration (Accounts & Entries)

When a Payroll Entry is submitted, ERPNext automatically generates the required GL Entries: debits to expense accounts and credits to liability accounts (salary payable, tax payable, etc.). These liabilities are then settled through Payment Entry or Bank Entry. Make sure the Accounts Settings and each component’s accounts are configured correctly.

Typical account mapping:
  • Salary Expense (P&L) – for positive earnings and allowances.
  • Salary/Tax Payable (B/S) – for net salary and statutory deductions.
  • Benefit or Withholding accounts – according to your company policy.

7) Common Troubleshooting Scenarios

  • Unexpected net pay: Check Additional Salary, Withholding, and attendance/leaves.
  • Failed slip creation: Ensure there is an active Salary Structure Assignment covering the selected period.
  • GL mismatches: Review component accounts, company currency, and posting dates.
  • Zero tax: Verify Income Tax Slab, Payroll Period, and employee exemption configuration.

8) Suggested Training Session Plan

  1. Build Salary Components and a Salary Structure for a demo scenario.
  2. Assign the structure via SSA to a group of employees (one with fixed components, one with variable components).
  3. Create Additional Salary (bonus/deduction) and Withholding for a sample employee.
  4. Run a full Payroll Entry: create slips → submit → post GL → process payment.
  5. Review reports: Salary Register / Bank Remittance / Income Tax Computation.
Unified training page prepared by NEXTFUTURE – Payroll in ERPNext v15 (Payroll / Salary Payout / Tax & Benefits).
قالب footer