Overview
Customer Invoices
Customer invoices can be generated in three ways:
From the Freight Quote Assistant LWC:

From the Auto Create button on the Customer Invoice related list on the Load page layout.

Automatically, based on transition to a particular Load Status value on a load. The invoice field values are based on the accepted Customer Quote record for this load. The Load Status value to trigger auto-generation of the invoice is set up from the TMS Admin 🡪 Configuration page:

You can both generate and/or email a single Customer Invoice in .PDF form by clicking the Generate or Generate and Email buttons on the Customer Invoice Banner LWC.
Invoice Generation
In some cases customer invoices generate successfully, but encounter the following error:
Customer Invoice Generation Errors 621726-1: javax.faces.FacesException: core.apexpages.exceptions.ApexPagesGenericException: java.lang.RuntimeException: javax.faces.FacesException: core.apexpages.exceptions.ApexPagesDeveloperException: Map key a1J7V00000X9K3YUAV not found in map.
When a Salesforce Id is referenced in an error message, it can be copy and pasted into the URL to open the record causing the issue.
To correct this error, copy and paste the SalesForce Id into the browser URL bar.
The error messages point to the SalesForce Id (a1J7V00000X9K3YUAV), which is Stop 3 on Load 621850. When opening this Load, an error states Invalid Load Configuration: Stops without line items. This error is either related to the Stop without a line item OR the stop is a duplicate location within the Load. When using the same Location for a 'round-trip,' it is encouraged to create a second Account/Location adding a prefix or suffix to the name. Such as, Garden City Terminals Savannah - 2. This practice will mitigate errors.
