INVOICES - Trips to bill resource allocation exports: What, why, how.
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.
Table of contents
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
Only a Super admin can create the export. Until one exists, the Export menu of the Trip view shows no custom export.
-
OPEN Configuration > Templates > File exports/downloads.
-
CLICK Create export.

-
TYPE a name in the Name field.
-
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.

-
SELECT the Qargo field, for example Trip > Name, Resource > Name or Costs by currency for one currency. The Header fills in by itself.
-
CLICK Add field as needed. To add the amount still to bill, follow Add an Amount to bill column below.
-
SELECT CSV or XLSX as the output format.
-
SAVE the export.
Add an Amount to bill column
-
CLICK the Qargo field box and SELECT Use expression builder at the bottom of the list.

-
CLICK Compose custom expression.

-
PASTE this expression in the Custom expression box:
$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") : "" -
REPLACE both GBP in the expression with your currency code, for example EUR.
-
CLICK Save in the expression builder.
-
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.
-
REPEAT these steps for each other currency you use.
-
SAVE the export.
Running the export from Trips to bill
Export menu in the Trip view
The Export menu lists the tenant’s resource allocation exports. Each one appears under CSV exports or Excel exports, depending on its output format.
-
OPEN Invoices > Trips to bill and switch to the Trip view.

-
SELECT the filters the list needs.
-
CLICK Export.

-
SELECT the resource allocation export.
-
SELECT which rows to export:
- Select rows - only the rows ticked on the screen.
- All - every row of the list, after the filters.

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

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.

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. |
