---
title: "Managing Tax Rule Codes"
url: "https://knowledgebase.xandapay.com/en/article/managing-tax-rule-codes"
language: "en"
last_updated: "2025-03-06T19:36:03.079Z"
---

# Managing Tax Rule Codes

Tax Rule Codes define how payroll-related taxes are applied to employees and companies, ensuring compliance with local tax regulations. These rules cover different tax types, including income tax, social security, and medical benefits. This guide walks you through accessing, creating, and managing tax rule codes effectively.

## **Accessing Tax Rule Codes**

1.  **Log in** to XandaPay Enterprise.
2.  Navigate to the **Payroll** menu on the left side.
3.  Expand the **Tax** section.
4.  Click **Rule Codes** to view the existing tax rule codes.

## **Understanding the Tax Rule Code List**

The displayed list includes key details for each tax rule:

-   **ID** – Unique identifier for the tax rule.
-   **Code** – The short code representing the tax rule.
-   **Type** – Specifies if the rule applies to **employees (EMP)** or **companies (COMP)**.
-   **Name** – Name of the tax rule (e.g., Income Tax, Social Security).
-   **Description** – Explanation of the tax rule.
-   **Class** – A classification value used for categorization.
-   **GL** – General Ledger code for accounting purposes.
-   **Country** – The country where the tax rule applies.

## **Creating a New Tax Rule Code**

1.  Click the **New Tax Rule Code** button at the top.
2.  In the form that appears:
    -   Enter the **Code** (short identifier).
    -   Select the **Type** (EMP for employees, COMP for companies).
    -   Provide the **Name** and **Description** of the tax rule.
    -   Define the **Class** (if applicable).
    -   Enter the **GL Code** for financial tracking.
    -   Choose the **Country** where the rule applies.
3.  Click **Save** to create the new tax rule code.

## **Editing an Existing Tax Rule Code**

1.  Locate the tax rule in the list.
2.  Click on the tax rule to open its details.
3.  Modify the necessary fields such as the **tax name, description, GL Code, or country**.
4.  Click **Save** to update the rule.

## **Deleting a Tax Rule Code**

1.  Open the tax rule you want to remove.
2.  Click the **Delete** button.
3.  Confirm the deletion if prompted.  
    💡 *Tip: If you may need the rule later, consider deactivating it instead of deleting it.*

## **Example Use Case: Social Security Tax**

To set up a Social Security Tax rule, you may need to:

-   Create **two separate tax rules**, one for employees (**SS\_EMP**) and another for companies (**SS\_CO**).
-   Assign appropriate **GL codes** to ensure proper accounting.
-   Apply the rule to the **correct country**.

## **Best Practices**

✔ Ensure tax rules align with **government regulations**.  
✔ Use **clear naming conventions** for easy identification.  
✔ Regularly **review and update** tax rules as tax laws change.  
✔ Avoid duplicate tax rules to prevent miscalculations.

By managing tax rule codes effectively, payroll administrators can ensure **accurate tax deductions** and **compliance with tax laws**, reducing errors in payroll processing. 🚀
