Inventory Items Custom Fields are not Printed in Invoice

Hi, I have created a custom field for Inventory Item, and I have enabled the “Show custom fields on printed documents” but even though it is not displayed in the invoice.

How can we fix this?

Start by telling us what edition (Desktop, Cloud, Server) and version number you are using

Then show us screenshots of theedit screen of the custom field and an edit screen of the Sales Invoice

I’m using the cloud version 25.8.15.2605

Custom Field edit screen:

Sales Invoice Edit screen:

Have you tried adding Sales Invoice Lines to the Placement box in the Custom Field edit?

2 Likes

You are using a custom theme called ‘Test’. I don’t think the custom field name is mention to this theme. Please share the custom_field API fetch and the variable code area, so we can better understand the issue.

Custom Fields placed in Sales Invoice Line is working, but I need to display the data of the custom fields placed in Inventory Items

Custom Theme is not a problem. I have tried it with and without a custom theme; the issue still occurs.

How can we fetch the API and variable code of a custom field?

@lubos @Ealfardan Please give me a fix for this. I’m waiting for it. So please help me out.

Have you tried following the advice given by @Joe91?
That is currently the only way to expose custom fields from inventory items in the Invoice View.

Alternatively, you can use the API to retrieve the raw invoice data, which includes all custom fields from both the invoice and the inventory items. This approach does not require you to configure custom fields to be shown on the invoice line or printed document.

From that data, you can then create your own custom invoice template to display the information according to your preferences.

1 Like

Hi @TaqathCSP,

The Placement field for your Custom Field should have two items in it:

  1. Inventory Item
  2. Sales Invoice - Line

Having two separate custom fields will not work, it has to be a single custom field with two placements.

Thanks, the method of placement of the custom field in both Inventory Items and Sales Invoice-Line works perfectly. It pulls the data automatically in the Invoice.

You’re most welcome my friend.

I only rephrased @Joe91’s comment, I just want to give him credit.

1 Like