Invoice Number will be assigned by Transportation Manager when the Invoice is created during the by the Invoice Run batch process. Invoice Number must be supplied when the Invoice is created via the UI or API.
When Invoice Number is system-generated, it will be assigned using a sequence number maintained at one of three levels:
Customer Level: If the Use Customer Invoice Number flag on the Invoice 1 tab in the Customer Properties is checked for the Customer for the Invoice, the Invoice Number will be assigned using a Sequence Number defined for this Customer. The next sequence number will be retrieved from the row in the Sequence Numbers table where Sequence Name (SEQUENCE / SEQUENCENAME) is equal to the Customer ID for the invoice concatenated with the string "CUSTINVC" (for example, if Customer ID is "CUSTOMERA" then SEQUENCENAME is "CUSTOMERACUSTINVC").
Division Level: If the Use Customer Invoice Number for the Customer is not checked and the "Use Customer Invoice Number" flag for the Division is checked (on the Last Numbers page for the Division), the Invoice Number will be assigned using a Sequence Number associated with the Division. The next sequence number will be retrieved from the row in the Sequence Numbers table where Sequence Name is equal to the Division ID concatenated with the string "CUSTINVCDIV" (for example, if Division ID is "CENT" then SEQUENCENAME is "CENTCUSTINVCDIV").
Global Level: If the Use Customer Invoice Number flags for the Customer and Division are not checked, the Invoice Number will be assigned using a Global Level Sequence Number. The next sequence number will be retrieved from the row in the Sequence Numbers table where Sequence Name is equal to "GLOBCUSTINVC".