Log In

Cost Codes (Advanced)

What cost codes do

Cost codes are labels - like Community Access, North Region, or Admin - that you attach to your shifts and supports to record which part of your business a piece of work belongs to.

On their own they're just labels. The value comes once you map each code to your accounting and payroll systems: every invoice and pay run is then stamped with the right label automatically, so you can see profit and loss broken down by program, region, or funding type.

There are two independent sides:

  • Income - a cost code on a support tags that support's invoice lines, splitting your revenue.
  • Wages - a cost code on a shift tags that worker's timesheet line, splitting your labour cost.

Invoicing always reads the code on the support; payroll always reads the code on the shift. The two are separate, and a support and the shifts that deliver it can carry different codes - often exactly what you want.

A quick example

Say you work across two regions and want to know which one makes money:

  1. Create two cost codes: North and South.
  2. Tag your supports and shifts to the right region - by hand, or with a rule that does it automatically.
  3. When you invoice, each support's income is tagged North or South; when you run payroll, each shift's wages are tagged the same way.
  4. Run a profit-and-loss report by region and compare.

The same approach works for service types, teams, or sites - tag once, and both sides of the ledger sort themselves out.

Before you start

Your organisation must have Scheduling and Cost Codes enabled. By default, only Admins can create and manage cost codes.

Creating your cost codes

Create, rename, and archive codes at Settings → Scheduling → Cost Codes.

Keep codes broad - each one should be a bucket you'd genuinely want on a report. Most organisations have a handful to a couple of dozen. Archiving a code hides it from new records but leaves it on existing ones, so past invoices, timesheets, and reports stay accurate.

Getting codes onto your roster

A code lands on a record in one of two ways: you pick it, or a rule applies it. Most teams use both.

Pick it manually

When you create or edit a shift, support, or group support, choose a code in the Cost Code field. Leave it blank when you want the first matching rule to choose the code.

  • On a support, it drives invoicing.
  • On a shift, it drives payroll.
  • On a group support, it sets the group's code, which cascades to each Participant's support inside the group - but never to shifts.

A code you pick by hand is a deliberate choice, so Astalty never overwrites it - not when rules run, and not during a bulk re-evaluation. To hand a record back to the rules, just clear the code.

Let rules do it

Rules apply a code automatically as your roster is built. Each rule means when these conditions are met, use this code. For example: Participant has tag NDIS > use NDIS.

What a rule can match on depends on its target:

  • Support rules match on the Participant's tags, the support type, the site, or the site's tags.
  • Shift rules match on the worker (role, team, or user group) and on the support context - Participant tags, support type, site, or site tag.

A rule can have several conditions; when it does, all must be true. Within one condition you can list several values, and any of them counts. Rules run top to bottom and the first match wins, so put specific rules above general ones (drag to reorder). A rule with no conditions is a catch-all, which Astalty keeps at the bottom automatically.

Build your rules on the Rules tab at Settings → Scheduling → Cost Codes.

Keeping things in sync

Astalty keeps rule-based codes current as your roster changes. Changing a support's type or site, or assigning or unassigning a worker, re-checks the affected records on the spot - so assigning a worker can let a more specific worker rule take over. Manual codes are always left alone. Re-tagging a Participant or site, or changing regions, updates records from today onwards, so earlier records need a bulk re-evaluation.

When you first set up rules - or change them - apply them to existing records with a bulk re-evaluation at Settings → Scheduling → Cost Codes → Rules tab → Actions → Re-evaluate Existing Records. Pick a date range, then choose how far to go:

  • Only fill missing cost codes - add a code where there isn't one, and never change or remove existing codes.
  • Full re-evaluation - assign missing codes, update ones that no longer match, and remove codes whose record no longer matches any rule.

The date range can cover up to 366 days. Astalty previews the changes before you apply them. For a large period, the preview checks a sample and tells you how many shifts, supports and group supports were sampled. Applying still checks every record in the period, so the final number of changes can be higher than the preview counts.

Manually assigned codes, and supports or group supports with invoiced charges, are always protected and never touched.

Shifts already in a timesheet batch are skipped unless you tick Include timesheet batch shifts. Tick it when a batch can't be exported because its shifts have no cost code - see Shifts Without a Cost Code. Leave it unticked for periods whose batches you've already sent to payroll, because a changed code would no longer match the timesheet your payroll platform received.

If a record you expected to change isn't in the preview, first check that it isn't protected, that Include timesheet batch shifts is ticked if it's in a batch, and whether the preview says it checked only a sample. A sampled preview can leave out records that Apply Changes still fills. If none of those explain it, no rule matches the record. Supports only match support rules, and shifts only match shift rules. Add or adjust a rule - or add a catch-all rule with no conditions - then preview again.

Connecting to your accounting and payroll systems

A code only starts splitting your numbers once you map it to a field in your finance system. You map each code once per integration, and Astalty applies it on every sync.

Each integration's Cost Codes list shows what every code is mapped to, so you can spot the codes still waiting for a mapping without opening each one. A code with nothing mapped shows Not mapped. To add or change a mapping, click the menu on the code's row. The list updates as soon as you save.

Xero invoicing

Settings → Integrations → Xero → Cost Codes

Map each code to your Xero tracking categories. Xero allows two tracking categories per invoice line (say Cost Centre and Region), so one code can fill both at once. Each invoice line then picks up the tracking from its support's code automatically.

The Xero Billing Tracking column lists each category and option a code fills, such as Region (Victoria), Program (SIL).

MYOB invoicing

Settings → Integrations → MYOB → Cost Codes

Map each code to a MYOB Job. Each invoice line then carries the Job from its support's code. See Cost Codes and MYOB Jobs.

The MYOB Job column shows each code's job number and name. If a code shows only the job number, choose Edit MYOB Job Mapping from its row menu and click Update to add the job's name.

Xero Payroll

Settings → Integrations → Xero → Cost Codes (payroll section)

Map each code to a Xero Payroll tracking option. Payroll allows only one category per timesheet line. If a shift has a code that isn't mapped, the export pre-check flags it so you can fix it before sending.

The Xero Payroll Tracking column shows each code's tracking option. The column appears even if you only use Xero for invoicing. In that case every code shows Not mapped, and you can ignore it.

Employment Hero, PayCat & QuickBooks Payroll

Settings → Integrations → Employment Hero → Cost Codes

Map each code to an Employment Hero location; the shift's code then sets the location on the timesheet line.

The Payroll Location column shows each code's location. If a mapped location no longer exists in Employment Hero, the column shows a warning such as Location 310460 not found. Map the code to a current location before you send your next timesheet batch. While Astalty can't read your locations from Employment Hero, the column shows each location's number instead of its name.

PayCat and QuickBooks Payroll are the same integration as Employment Hero - if your account uses one of those, this section will say "PayCat" or "QuickBooks Payroll" instead, and the mapping works the same way.

You can map codes gradually. An unmapped code has no effect.

Shifts Without a Cost Code

A shift's code only affects payroll. Invoices use the support's code, so a shift with no code never changes an invoice. Whether a shift with no code stops a pay run depends on where you send timesheets:

Where you send timesheetsA shift with no cost code
Xero Payroll, with a timesheet tracking category set up in XeroBlocks the export. Validation shows Shift has no cost code, but your Xero organisation requires a tracking category on timesheets
Xero Payroll, with no timesheet tracking categoryIs sent without tracking
Employment Hero, PayCat or QuickBooks PayrollIs sent without a location
File exportsLeaves the Cost Code column blank in the Raw shift data and SCHADS interpreted timesheet files, and Cost Centre blank in the Business Central timesheet. The Xero-formatted timesheet has no cost code column

Even when nothing blocks the export, the shift's hours are left out of any wage reporting you split by cost code. If you don't split wages by cost code in Xero, you can leave shifts without one by removing the timesheet tracking category in your Xero Payroll settings. Check with whoever manages your accounts before changing it.

A shift usually ends up with no code because:

  • No shift rule matches it. Support rules only code supports, so an account with only support rules leaves every shift blank.
  • The rules changed after the shift was created. A new or edited rule doesn't reach existing shifts until you re-evaluate them.
  • A Participant's or site's tags, or someone's regions, changed after the shift's date. Those changes only update records from today onwards.

To fix shifts that are already in a timesheet batch, select Fix issue on the batch's error. It opens Re-evaluate Existing Records with the batch's dates set and Include timesheet batch shifts ticked. Keep Only fill missing cost codes, check the preview, select Apply Changes, then validate the batch again. See Xero validation errors.

If the same shifts keep coming up, fix the rule that should cover them rather than coding each shift by hand.

Checking your work

Before an invoicing or pay run, check Reports → Cost Code Assignments. Summary cards show your coverage - total records in the period, how many are assigned versus unassigned, and how many came from a rule versus a manual choice. The table lists your shifts and supports together with each one's code and where it came from, and you can open any row to jump to the record.

The best habit is to filter to Unassigned for the period you're about to bill or pay, then close any gaps - by assigning a code by hand, or adjusting a rule and re-evaluating - before anything reaches your accounting or payroll system untagged. Doing this before you create the timesheet batch saves fixing the batch afterwards. See the Cost Code Assignments Report.

Tips

  • Manual always wins. A hand-picked code is never overwritten by a rule or re-evaluation. Clear it to hand the record back to rules.
  • Shifts and supports are tagged separately. Supports carry the income code; shifts carry the wage code. A shift never inherits its support's code - only a manual code on a group support cascades to its child supports.
  • Order matters in rules. The first matching rule wins, so keep specific rules above general ones and let the catch-all sit at the bottom.
  • Map before you send. A code with no mapping has no effect.
  • Archiving is safe. It hides a code from new records but keeps your history and past reports intact.

Was this page helpful?