Skip to main content
Qargo

Invoices – Loads to bill resource allocation exports: what, why and how

Resource allocation exports write the Loads to bill Load 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
  1. Summary
  2. Terminology
  3. Use cases
  4. Prerequisites
  5. Setup: create a resource allocation export
  6. Running the export from Loads to bill
  7. Reading the cost fields
  8. Troubleshooting

Summary

What are resource allocation exports

  • A custom export of the type Resource allocation, run from the Load view in Loads 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 load.

Why use resource allocation exports

  • Finance can check contract carrier 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 Load 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 contract carrier or a vehicle) assigned to a load. The Load 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 contract carrier cost checks

At month end, finance exports the loads still to bill and compares each contract carrier line with the carrier invoices. Each file row matches one row on the Load 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 Load 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

  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 Load view of Loads to bill.
    • Intermodal planning - a different type for the Planning export. Do not pick it for Loads to bill.

    Create export form with Resource allocation in the Export type list

  5. Select the Qargo field, for example Load > 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.

Add an Amount to bill column

  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

  2. Click Compose custom expression.

    Expression builder with the Compose custom expression button

  3. 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") : ""
  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 Loads to bill

Export menu in the Load 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.

  1. Open Invoices > Loads to bill and switch to the Load view.

    Invoices, Loads to bill, with the Load view selected

  2. Select the filters the list needs.

  3. Click Export.

    Load view with two rows checked and the Export button

  4. Select the resource allocation export.

  5. Select which rows to export:

    • Select rows - only the rows checked 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

  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

Large exports

  • Up to 500 rows download right 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 loads of the list and shows a warning when the list is longer.

What changes in the menu and counters

  • Custom exports of the type Load no longer appear in this menu. They still run from the other screens that offer them.

  • The built-in Export under Excel exports and the revenue and cost report stay. These still export whole loads.

  • When you check rows, the “N selected” counter under the Load column header counts resource rows, not loads. A load with two resources counts as 2.

    Load view with three rows of the same load checked and the counter showing 3 selected

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 load when any cost charge on that load 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 kilometers

The export has no empty kilometers 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 Load 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 Load export is missing from the Load view. Custom exports of the type Load 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 Loads 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 load 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 load’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.