Sales invoice get items from Sales oder

Hello,
I have a question.
I added a sales order, and then I added a sales invoice.
I get the items from my sales order, detailing the sales order through to the sales invoice, fine.
My problem and question is whether it is possible to prevent the user from adding a quantity greater than the quantity entered in the sales order.
They can adjust the quantity to a lesser amount, but I do not want the quantity to be greater than the quantity entered in the sales order.

It is not possible to set in the get items from, but maybe you can set the validation on update according to the logic. It’s tricky but try it, if possible.

1 Like

do you mean using java script client script screen?

Server script is best for that.