Hello everibody, I have a Salesorder that i post as "Ship". The salesline of the order can be modified by standard. How can i code so that the "quantiity" field on salesline cannot be changed, but others can. Is it possible to make some kind of error exception?. I'm trying to implement the solution using codeunit.
0
Answers
Something similar how ReserveSalesLine.VerifyChange(Rec,xRec) works:
IF (Quantity <> xRec.Quantity) AND ItemExists(xRec."No.") AND ("Quantity Shipped" <> 0) THEN
FIELDERROR(Quantity);