My Products
Help
icsvertexnl
CONTRIBUTOR ***

Lotserialsnumbers are not updated in Allocations

by icsvertexnl

Hello,

 

I want to put the serialnumbers in allocations.

But it does not work.

 

request:

 

{
"hold": {
"value": "false"
},
"fromWarehouse": {
"value": "1"
},
"shipmentDetailLines": [
{
"operation": "Update",
"lineNumber": {
"value": "1"
},
"warehouse": {
"value": "1"
},
"shippedQty": {
"value": "4"
},
"allocations": [
{
"operation": "Insert",
"lineNbr": {
"value": "106"
},
"location": {
"value": "1"
},
"quantity": {
"value": "1"
},
"lotSerialNumber": "6233553333"
},
{
"operation": "Insert",
"lineNbr": {
"value": "108"
},
"location": {
"value": "1"
},
"quantity": {
"value": "1"
},
"lotSerialNumber": "5453426523"
},
{
"operation": "Insert",
"lineNbr": {
"value": "110"
},
"location": {
"value": "1"
},
"quantity": {
"value": "1"
},
"lotSerialNumber": "5454534545"
},
{
"operation": "Insert",
"lineNbr": {
"value": "112"
},
"location": {
"value": "1"
},
"quantity": {
"value": "1"
},
"lotSerialNumber": "5464564565"
}
]
}
]
}

 

Allocations in the shipment

 

icsvertexnl_0-1639569277759.png

 

 

 

 

 

6 REPLIES 6
icsvertexnl
CONTRIBUTOR ***

by icsvertexnl (Updated ‎15-12-2021 14:20 by icsvertexnl )

Hi,

 

We do assign the serialnumbers at receiving the goods.

We use a scanprogram for orderpicking, the people in the warehouse want to scan the serialnumber that they first see and not the requested one in Visma.

 

Now they have to call to the administration to tell wich serialnumber comes first. it just don't work for us that way.

we want to be flexibel.

 

Accepted solution
Magnus Johnsen
VISMA

Hi,

It should definitely be possible to do so, we're not able to reproduce the issue on our end.

First, we deleted the allocations we had previously set:

2021-12-15 14_47_48-Shipments - Brave.png

Followed by PUT:

{
    "shipmentDetailLines": [
        {
            "operation": "Update",
            "lineNumber": {
                "Value": 1
            },
            "allocations": [
                {
                    "operation": "Insert",
                    "lineNbr": {
                        "Value": 2
                    },
                    "quantity": {
                        "Value": 1
                    },
                    "lotSerialNumber": {
                        "value": "234"
                    }
                },
                {
                    "operation": "Insert",
                    "lineNbr": {
                        "Value": 3
                    },
                    "quantity": {
                        "Value": 1
                    },
                    "lotSerialNumber": {
                        "value": "345"
                    }
                }
            ]
        }
    ]
}
Result: 
2021-12-15 14_48_06-Shipments - Brave.png
 
The issue seems to be how you send the "lotserialnumber" field, you need to send it as such:
"lotSerialNumber": {"value": "234"}
 
You are missing the value object in your JSON.
Please try again after correcting this. 
icsvertexnl
CONTRIBUTOR ***

Thanks! it works now

by Magnus Johnsen

Hi,

With the lot serial assignment method set to "When received", you should enter the serial on the purchaseReceipt at recieval.

For example, in our own local company we have made a shipment with an Item that has the same class that was given a serial in the purchaseReceipt. When creating the shipment, it is automatically assigned a lot/serial in the allocations:

2021-12-15 13_58_17-Shipments - Brave.png

If we try to change that value, it only allows us to change it to a lot/serial that is already entered in the system(via the API and the UI):

2021-10-05 16_04_37-Kunder - Brave.png

Via the API:

Put shipment/000016

{    "shipmentDetailLines": [{
        "operation": "Update",
        "lineNumber": {
            "Value": 1
        },
        "allocations": [{
            "operation": "Update",
            "lineNbr": {
                "Value": 2
            },
            "quantity": {
                "Value": 1
            },
            "lotSerialNumber": {
            "value": "133"
          }
        }]
    }]
}
Response:
{
    "message": "VismaId: 8a212c96-8321-4322-8c1b-23a5384fe24c. Error: LotSerialNbr '133' cannot be found in the system."
}

by Magnus Johnsen

Hi,

So this is a put request?

How is the shipment created? Where there any allocation lines there initially?

What LOT/Serial assigment method is used in the items lot class?

Thank you. 

icsvertexnl
CONTRIBUTOR ***

Hi

 

This is a put.

The shipment is created in the webinterface, not with the API.

 

icsvertexnl_0-1639570912567.png

 

Values allocations with a new shipment, fot the same salesorder:

 

icsvertexnl_1-1639571033156.png