> ## Documentation Index
> Fetch the complete documentation index at: https://support.visualcare.com.au/llms.txt
> Use this file to discover all available pages before exploring further.

# Setting Up Services for Payroll

> Assign payroll codes to services for each pay level so payroll exports process correctly

Watch the video walkthrough, then follow the steps below.

<Frame>
  <iframe src="https://www.loom.com/embed/f8a0b138aa354ee088c0339215243f1d" title="Setting Up Services for Payroll" frameBorder="0" allowFullScreen style={{ width: '100%', aspectRatio: '16 / 9' }} />
</Frame>

<Steps>
  <Step title="Go to the services setup page">
    1. Navigate to **Maintenance** in the main menu.
    2. Click **Services**.
    3. At the bottom of the page, you'll see a list of all services your organisation provides.
  </Step>

  <Step title="Select a service">
    1. Click on any service in the bottom table.
    2. The details for that service will populate in the top section.
    3. You'll also see the pay level labels you configured earlier in **Settings** → **Finance** → **Pay Levels**.
  </Step>

  <Step title="Understand how payroll codes work">
    Visualcare exports payroll to Xero by matching two things:

    * The worker's **Pay Rate Level**
    * The **Payroll Code** assigned to that service for that level

    For example, if a worker set to Casual Level 1, Pay Point 3 is rostered to Weekday Daytime, three hours of work will be exported to the payroll code you've set for that level (e.g., Ordinary Hours).

    <Note>
      Visualcare exports **hours**, not pay rates. Pay rates remain managed directly in Xero.
    </Note>
  </Step>

  <Step title="Add payroll codes for each pay level">
    To ensure payroll exports successfully:

    1. For every service, review the list of pay levels shown.
    2. Make sure each pay level your organisation uses has a payroll code selected.
    3. The payroll code must match the corresponding **Pay Item** set up in Xero.
  </Step>

  <Step title="Avoid export errors">
    If a worker is rostered at a pay level that does not have a payroll code set for that service, you will see the error:

    > "No Service Payroll Code"

    To fix this:

    1. Return to **Maintenance** → **Services**.
    2. Select the service.
    3. Add the missing payroll code for the relevant pay level.
    4. Save your changes.

    Once the payroll code is entered, the export will process correctly.
  </Step>
</Steps>
