> For the complete documentation index, see [llms.txt](https://help.agencydesk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.agencydesk.io/company-settings/departments.md).

# Departments

Set up Departments with a default hourly rate, a sales account and an optional Cost of Sales account, so people, Task Types and Costs are grouped and post to the right accounts.

A **Department** is a discipline in your agency, such as Design, Copywriting, Development, Strategy or Production. People, Task Types and Cost Types belong to Departments, so Departments decide how the Resource Planner groups your team, how reports split workload, and which sales and Cost of Sales accounts Invoice and Purchase Order lines post to. Open **Settings > Departments**. Finance, Admin, Super User and the Account Owner can add and edit Departments.

## Add a Department

{% stepper %}
{% step %}
Open **Settings > Departments** and click **New Department**.
{% endstep %}

{% step %}
Enter a **Department Name** that clearly describes the area of work.
{% endstep %}

{% step %}
Enter the **Default Hourly Rate**, in your agency's home currency (set in [Finance](https://help.agencydesk.io/company-settings/general/finance.md)). It is required.
{% endstep %}

{% step %}
Choose the **Sales Code**: the sales account this Department's Invoice lines post to. The list offers active sales accounts, and keeps an account already chosen visible when you edit.
{% endstep %}

{% step %}
Optionally choose a **Cost of Sales Code**: the purchase account for Supplier Purchase Orders in this Department. Choose an active Cost of Sales account.
{% endstep %}

{% step %}
Leave the switch at the top on to keep the Department active, and click **SAVE**.
{% endstep %}
{% endstepper %}

{% hint style="success" %}
**Example:** A digital agency maps its **Design** Department to the *Design Income* sales account and the *Outsourced Production* Cost of Sales account, with a default rate of 950.00 an hour. Its **Media** Department earns into *Ad Sales* and buys into *Ad Cost of Sales*, so media resold to Clients is reported separately in Xero from design fees.
{% endhint %}

### If the Sales Code you need is missing

{% stepper %}
{% step %}
Keep the Department form open. Use the **Manage accounts** link under the field to open Accounting in a new tab, and add or import the sales account you need.
{% endstep %}

{% step %}
Return to the Department, refresh the list and choose the account. Click **SAVE**; adding an account alone doesn't map it to the Department.
{% endstep %}
{% endstepper %}

## Check and change account mapping

The Departments list shows each Department's **Default Hourly Rate**, **GL Sales Code (Tasks)** and **GL Cost of Sales (Costs)**. A blank Cost of Sales means none is set. Hover over a row and click the **pencil** to change it; clearing the optional Cost of Sales Code removes that mapping.

How the accounts are chosen:

* **Invoice lines** use the Task Type's or Cost Type's own **GL sales account** override if it has one, otherwise the Department's Sales Code.
* **Purchase Order lines** use the Cost Type's own **GL cost of sales** override if it has one, otherwise the Department's Cost of Sales Code.

A missing purchase account can make Xero refuse a Purchase Order until the line is set up.

{% hint style="info" %}
To see which Departments use a particular account, check **Settings > General > Accounting**.
{% endhint %}

## Switch a Department off or delete it

* Use the **Active** switch in the list to switch a Department off or on. The change saves straight away.
* Hover over a row and click the **bin** to delete a Department, then confirm.

## How Departments are used

* **People:** each person belongs to one or more Departments, set in [Users](https://help.agencydesk.io/company-settings/users.md).
* **Resource Planner:** people are grouped by Department, with each Department's load shown.
* **Task Types:** each Task Type has a Department. When you assign people to a Task, people in its Department are listed first.
* **Reports:** Work Distribution, Billed vs Unbilled and the Time Recon reports can group or filter by Department.
* **Accounts:** the Sales Code and Cost of Sales Code decide where Invoice and Purchase Order lines post.

## Common questions

### Who can manage Departments?

Finance, Admin, Super User and the Account Owner. Finance can open Departments because sales accounts are assigned there.

### What currency is the Default Hourly Rate in?

Your agency's home currency, set in Settings > General > Finance.

### Do I need a Cost of Sales Code?

It's optional, but set one for Departments that raise Supplier Purchase Orders you sync to Xero.

### Why is my Sales Code list empty?

There are no active sales accounts yet. Add or import one in Settings > General > Accounting, then refresh the list.

### Can one person be in several Departments?

Yes. Set their Departments in Settings > Users.

## Related

* [Accounting](https://help.agencydesk.io/company-settings/general/accounting.md)
* [Users](https://help.agencydesk.io/company-settings/users.md)
* [Task Types](https://help.agencydesk.io/company-settings/rate-card/task-types.md)
* [Cost Types](https://help.agencydesk.io/company-settings/rate-card/cost-types.md)
* [Integrations](https://help.agencydesk.io/company-settings/integrations.md)
* [Resource Planner](https://help.agencydesk.io/task-schedule/resource-planner.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.agencydesk.io/company-settings/departments.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
