Internal Error when using numeric custom field in inventory item

I get the below internal error when doing the following:

Internal Error
Manager 22.8.16.291
System.NullReferenceException: Object reference not set to an instance of an object.
at ManagerServer.HttpHandlers.Businesses.Business.Table.GetCellsFromCustomFields(CustomField customFields, Dictionary`2 values, ICustomField customFields2, CustomFields values2) in /home/runner/work/Manager/Manager/ManagerServer/HttpHandlers/Businesses/Business/Table.cs:line 1077
at ManagerServer.HttpHandlers.Businesses.Business.InventoryItems.InventoryItems.GetRows() in /home/runner/work/Manager/Manager/ManagerServer/HttpHandlers/Businesses/Business/InventoryItems/InventoryItems.cs:line 106
at ManagerServer.HttpHandlers.Businesses.Business.Table.InnerGet2() in /home/runner/work/Manager/Manager/ManagerServer/HttpHandlers/Businesses/Business/Table.cs:line 111
at ManagerServer.HttpHandlers.Businesses.Business.BusinessTemplate.InnerGet() in /home/runner/work/Manager/Manager/ManagerServer/HttpHandlers/Businesses/Business/BusinessTemplate.cs:line 289
at ManagerServer.HttpHandlers.Template.Get() in /home/runner/work/Manager/Manager/ManagerServer/HttpHandlers/Template.cs:line 285
at ManagerServer.HttpHandlers.HttpHandler.ProcessRequest() in /home/runner/work/Manager/Manager/ManagerServer/HttpHandlers/HttpHandler.cs:line 154
at ManagerServer.Startup.<>c.<b__1_1>d.MoveNext() in /home/runner/work/Manager/Manager/ManagerServer/Startup.cs:line 123
— End of stack trace from previous location —
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)

Error appears when this box is checked in numeric custom field
image

Fixed in the latest version (22.8.17)

The internal error prompt is fixed but the numeric custom field when added to inventory item does not show in invoices, payments, receipts, etc. So at the moment can not be used.

The detailsof the numeric custom field. By the way it does not work with classic custom field either

@eko this is by design. If you want the field to show on invoice lines, you need to select it in the Placement field too.

I still need to implement autofill so when you select inventory item it will automatically copy the value from inventory item level to invoice line level.

Then there is a design problem. The custom field, in this example kilogram, would appear in every single invoice while only needed for a particular inventory item.

Indeed in the absence of autofill it would render such custom fields at inventory item level useless and therefore I am not sure if this was intended by design. So either prevent inventory item selection when creating custom fields or add the autofill because it does not work as expected from a user perspective. Thanks

This will be also addressed because you will be able to hide/show individual custom field columns just like you can hide/show built-in columns.