---
title: "INVOICES - Trips to bill resource allocation exports: What, why, how."
description: "Resource allocation exports write the Trips to bill Trip view to a file, one row per resource with its own costs. Learn how to set one up, who can run it and how large exports are delivered."
url: https://help.qargo.com/en/articles/9599882-invoices-trips-to-bill-resource-allocation-exports-what-why-how
locale: en
updated: 2026-11-30
---

# INVOICES - Trips to bill resource allocation exports: What, why, how.

## Summary

**What are resource allocation exports**

- A custom export of the type _Resource allocation_, run from the _Trip view_ in _Trips to bill_.
- The file has one row per row on the screen. Each row carries only the costs of its own resource, not the cost of the whole trip.

**Why use resource allocation exports**

- Finance can check subcontractor costs and accruals line by line against the file.
- The _Amount to bill_ column counts costs like the _Amount_ column. The file adds up to what the screen shows with an Amount to bill column added.

**How does it work**

- A _Super admin_ creates an export of the type _Resource allocation_ once.
- Users then run it from the _Export_ menu of the _Trip view_, for selected rows or for the whole list.
- Large exports arrive by email instead of as a direct download.

## Terminology

| Term | Meaning |
| --- | --- |
| Resource allocation | One resource (for example a subcontractor or a vehicle) assigned to a trip. The Trip view shows one row per resource allocation. |
| Resource allocation export | A custom export that writes one file row per resource allocation, with that resource's own costs. |
| Amount to bill | The resource's cost charges that are still to bill, per currency. Invoiced charges and their credits are left out. |
| Costs by currency | All the resource's cost charges per currency, including invoiced charges. Charges and credit charges are listed separately. The Total excl. tax field subtracts the credits. |
| Custom export | An export file layout that a Super admin builds and that users run from an Export menu. |

## Use cases

### Accruals and subcontractor cost checks

At month end, finance exports the trips still to bill and compares each subcontractor line with the purchase invoices. Each file row matches one row on the Trip view, with only that resource's cost. Totals per resource are easy to reconcile.

## Prerequisites

- A _Super admin_ has created an export of the type _Resource allocation_.
- A Super admin adds an Amount to bill column to the export, one per currency. See _Add an Amount to bill column_ in Setup.
- The user can edit charges or has planning rights. A user with the right to edit charges also needs a role that can export records, such as the Invoice role.
- The export uses CSV or XLSX output.

## Setup: create a resource allocation export

### Create export {#h_c9bb6fc6f4}

Only a _Super admin_ can create the export. Until one exists, the _Export_ menu of the _Trip view_ shows no custom export.

1. **OPEN** _Configuration_ > _Templates_ > _File exports/downloads_.
2. **CLICK** _Create export_.

   ![Templates page, File exports/downloads, with the Create export button](https://help.qargo.com/media/11f0ff6d0827-resource-allocation-export-create-export.png)

3. **TYPE** a name in the _Name_ field.
4. **SELECT** _Resource allocation_ in the _Export type_ field.
   - _Resource allocation_ - one row per resource on the Trip view of Trips to bill.
   - _Intermodal planning_ - a different type for the Planning export. Do not pick it for Trips to bill.

   ![Create export form with Resource allocation in the Export type list](https://help.qargo.com/media/7f5c49459d84-resource-allocation-export-type.png)

5. **SELECT** the _Qargo field_, for example _Trip > Name_, _Resource > Name_ or _Costs by currency_ for one currency. The _Header_ fills in by itself.
6. **CLICK** _Add field_ as needed. To add the amount still to bill, follow Add an Amount to bill column below.
7. **SELECT** CSV or XLSX as the output format.
8. **SAVE** the export.

:::callout{tone="note"}
📚 Add _Amount to bill_ rather than _Costs by currency_ when the file must match the Amount column. _Costs by currency_ also counts invoiced charges.
:::

### Add an Amount to bill column {#h_ce532ed820}

1. **CLICK** the _Qargo field_ box and **SELECT** _Use expression builder_ at the bottom of the list.

   ![Qargo field list with Use expression builder at the bottom](https://help.qargo.com/media/df78b29babaf-resource-allocation-use-expression-builder.png)

2. **CLICK** _Compose custom expression_.

   ![Expression builder with the Compose custom expression button](https://help.qargo.com/media/30cba44f2553-resource-allocation-compose-custom-expression.png)

3. **PASTE** this expression in the _Custom expression_ box:

   ```txt
   $exists(costs_by_currency.GBP) ? $formatNumber($sum([costs_by_currency.GBP.charges[status = "CREATED" and ($not($exists(approval_status)) or approval_status = "APPROVED")].$number(amount_excl_tax)]), "0.00") : ""
   ```

4. **REPLACE** both GBP in the expression with your currency code, for example EUR.
5. **CLICK** _Save_ in the expression builder.
6. **TYPE** a name in the _Header_ box, for example "Amount to bill EUR". The header stays empty for a custom expression, and you can't save the export without one.
7. **REPEAT** these steps for each other currency you use.
8. **SAVE** the export.

## Running the export from Trips to bill

### Export menu in the Trip view {#h_a096bb06b1}

The _Export_ menu lists the tenant's resource allocation exports. Each one appears under _CSV exports_ or _Excel exports_, depending on its output format.

1. **OPEN** _Invoices_ > _Trips to bill_ and switch to the _Trip view_.

   ![Invoices, Trips to bill, with the Trip view selected](https://help.qargo.com/media/43a52f711d5a-trips-to-bill-trip-view.png)

2. **SELECT** the filters the list needs.
3. **CLICK** _Export_.

   ![Trip view with two rows ticked and the Export button](https://help.qargo.com/media/27610f33c1c8-trips-to-bill-trip-view-export-button.png)

4. **SELECT** the resource allocation export.
5. **SELECT** which rows to export:
   - _Select rows_ - only the rows ticked on the screen.
   - _All_ - every row of the list, after the filters.

   ![Export menu with the resource allocation export under CSV exports and the choice All or Select rows](https://help.qargo.com/media/a641d0ad99ef-trips-to-bill-resource-allocation-export-all-select-rows.png)

6. **CHECK** the result: the file downloads, or a message says the file will arrive by email.

![Example file: one row per resource, with Costs by currency and Amount to bill columns](https://help.qargo.com/media/1f8228f6ac5c-resource-allocation-export-file-example.png)

### Large exports

- Up to 500 rows download straight away.
- Above 500 rows, Qargo emails the file as an attachment, up to 25,000 rows. Above 25,000 rows nothing is exported.
- With _All_, Qargo takes at most the first 10,000 trips of the list and shows a warning when the list is longer.

### What changes in the menu and counters

- Custom exports of the type Trip no longer appear in this menu. They still run from the other screens that offer them.
- The built-in _Export_ under _Excel exports_, the revenue and cost report stay. These still export whole trips.
- When you tick rows, the "N selected" counter under the Trip column header counts resource rows, not trips. A trip with two resources counts as 2.

  ![Trip view with three rows of the same trip ticked and the counter showing 3 selected](https://help.qargo.com/media/c78733b51971-trips-to-bill-trip-view-selected-counter.png)

## Reading the cost fields

### Amount to bill and Costs by currency

- Amount to bill counts only cost charges still to bill, the same way as the Amount column. Costs by currency holds all the resource's cost charges, including invoiced charges. Charges and Credit charges list each line, so a credit shows as a separate positive amount. For the net cost, use Total excl. tax, which already subtracts the credits.
- Costs by currency and the Amount to bill column stay empty on every row of a trip when any cost charge on that trip belongs to a billing entity you don't have access to. This also applies to resources whose own costs are on your billing entities. Users with access to all billing entities always see the costs.
- A cost column also stays empty for a currency in which the resource has no costs. Add one column for each currency you use.

### Empty kilometres

The export has no empty kilometres per resource. The field _Distance empty (km)_ under _Orders_ gives the empty distance of the whole order, not of one resource.

## Troubleshooting

| Issue | Likely cause | Resolution |
| --- | --- | --- |
| The Export menu of the Trip view shows no custom export. | No export of the type Resource allocation exists yet. Qargo has no default one. | Ask a Super admin to create one with Create export and Export type Resource allocation. |
| A custom Trip export is missing from the Trip view. | Custom exports of the type Trip no longer appear in this menu. | Run it from another screen that offers it, or create a Resource allocation export. |
| An Intermodal planning export does not appear in Trips to bill. | Intermodal planning is a different type, used by the Planning export. | Create a new export with Export type Resource allocation. |
| The cost fields in the file are empty. | The trip has cost charges outside the billing entities the user works with. Or the column is for a currency in which the resource has no costs. | Check the trip's cost charges and billing entities, or ask a user with access to all of them. Add one column for each currency the resource has costs in. |
| The file total differs from the Amount column. | The export uses Costs by currency, which includes invoiced charges. | Add an Amount to bill column, see Setup. For the net cost, use Costs by currency > Total excl. tax, which already subtracts the credits. |
| Qargo shows There is nothing to export. | No row is selected, or the filtered list is empty. | Select rows or change the filters, then export again. |
| The file did not download. | The export has more than 500 rows, so Qargo sends it by email. | Check the inbox for the export attachment. |


## Related articles

- [INVOICES - Create Purchase Invoice from Trips](https://help.qargo.com/en/articles/285482-invoices-create-purchase-invoice-from-trips.md)
- [Customer Portal — Excel and CSV Order Export — What, Why & How.](https://help.qargo.com/en/articles/764910-customer-portal-excel-and-csv-order-export-what-why-how.md)
- [RESOURCES - Resource costs: What, why, how.](https://help.qargo.com/en/articles/892598-resources-resource-costs-what-why-how.md)
- [How to Configure Custom Export Files](https://help.qargo.com/en/articles/202699-how-to-configure-custom-export-files.md)
- [RATES — Charge Currency on Rate Card Charges — What, Why & How](https://help.qargo.com/en/articles/844512-rates-charge-currency-on-rate-card-charges-what-why-how.md)
