# Cost centers on invoice line items (KOST1 / KOST2)

Assign KOST1/KOST2 per invoice line with header fallback for export.

Assign **KOST1** and **KOST2** per line in the invoice spreadsheet grid · not only on the invoice header. Export uses each line’s values when present, and falls back to header cost centers when a line slot is empty.

**Who this is for:** AP teams that split one invoice across departments or projects, and admins who enable **Line item cost centers** for the workspace.

Related: [Editing invoices](https://help.cortena.ai/guides/invoices/editing-invoices), [Spendesk cost center mapping](https://help.cortena.ai/guides/integrations/spendesk-cost-centers), and [DATEV Rechnungswesen](https://help.cortena.ai/guides/integrations/datev-rechnungswesen).

## 1. When line-item cost centers are available

Line-level **KOST1** / **KOST2** columns appear when:

- Tenant feature **Line item cost centers** is enabled, and
- Cost centers are **not** deactivated under **Settings → Accounting Preferences** (**Deactivate cost centers** is off).

If cost centers are deactivated for the tenant, header and line cost center fields are hidden and cost dimensions are omitted from accounting export.

## 2. Edit on the line items grid

1. Open a payable or expense in the combined invoice view.
2. In the line items spreadsheet, use the **KOST1** and **KOST2** columns (same combobox behaviour as header cost centers).
3. Click a cell, pick or type a cost center number, **Enter** to save, **Escape** to cancel.

You can paste from Excel into KOST columns when bulk-editing lines.

## 3. Header cost centers and export

Header **Cost center** fields still exist when cost centers are enabled. For export:

- Each export line uses **line** KOST1/KOST2 when set on that line.
- Empty line slots can **fall back** to the matching header cost center for that slot.

What you see on invoice detail and in export preview should match what is stored on the match · not values invented only at export time.

## 4. Expense providers and automatic line fill

When invoices arrive from an expense provider (for example Spendesk or Rydoo), Cortena can map provider cost dimensions onto line **KOST1** / **KOST2** when your integration mapping is configured. Manual edits on the grid follow the same save rules as header fields.

## 5. Tips and limitations

- Requires **Line item cost centers** (tenant feature). Without it, only header cost centers apply.
- **Deactivate cost centers** on the tenant hides all cost center UI and strips cost centers from saves and export.
- Workflow conditions and Drive template variables that reference cost centers respect the same policy · when disabled, KOST placeholders are skipped.
- Matching agents may propose header or line cost centers; always verify split invoices before export.

## Quick reference

| Task | Where |
| --- | --- |
| Enable line KOST | Super-admin / tenant feature **Line item cost centers** |
| Turn off all cost centers | **Settings → Accounting Preferences → Deactivate cost centers** |
| Edit per line | Invoice detail → line items → **KOST1** / **KOST2** |
| Confirm export | Export preview / accounting export summary |
