KM
02/27/2026, 11:42 AMCeligo AI
02/27/2026, 11:42 AMAI generated answer (using internal Slack threads):To show inventory detail in an invoice PDF template using Freemarker, you can use the
${item.inventorydetail} variable. However, if you're trying to access specific fields within the inventory detail, you might need to use the correct field names. For example, if you're trying to access the inventory number and expiration date, you would use ${item.inventorydetail.inventorynumber} and ${item.inventorydetail.expirationdate} respectively.
If you're still getting null values, it could be because the inventory detail for the item in question is not set or the field names are incorrect. Make sure the inventory detail is set and the field names are correct.
For displaying item quantities to the exact decimal recorded in the transaction, you can use the built-in string formatting functions in Freemarker. For example, ${item.quantity?string("0.#####")} will format the quantity to 5 decimal places.
For displaying multiple sizes of the same item in a single row, you would need to create a function in your template that summarizes your item data then loop over that data when creating the items table. You can refer to the provided code sample for an example of how to do this. The example provided summarizes the total quantity of each item, but you can modify it to summarize the quantities for each size of the item.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
02/27/2026, 11:43 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843628
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.841613829
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832458556
Celigo AI
02/27/2026, 11:43 AM