Skip to Content
0
Jan 25, 2023 at 11:31 AM

Create new Batch number on InventoryGenEntries

63 Views Last edit Jan 25, 2023 at 11:36 AM 3 rev

Hello,

I'm creating a InventoryGenEntry document using the Service Layer, with this JSON body:

{ "DocumentLines": [ { "ItemCode": "ItemCode", "Quantity": 1, "MeasureUnit": "Carat", "WarehouseCode": "RM4", "BatchNumbers": [ { "BatchNumber": "1234", "Quantity": 1 } ] } ] }

Witch works great when the BatchNumber already exists, but i need to create a new Batch Number for the item, something like 1234-1 in this example.

But when i try to make the same request with "1234-1" as the BatchNumber, i get this error:

[DocumentLines.WarehouseCode][line: 1] , 'Money Overflow; cannot display all digits (ODBC -104)'

Is it possible to create a new Batch number with a InventoryGenEntries, or do i need to make another request?

Thank you for your time,

Regards,