Purchline default quantity

kenneth73kenneth73 Member Posts: 59
Hi

NAV 2015

Is it possible to set a default quantity for an item on purchline and salesline. ?

Best regards
Kenneth

Answers

  • nvermanverma Member Posts: 396
    1) Add a new field on the Item table, called "default quantity. "
    2) Modify the No. field OnValidate trigger on the Purchase Line and Sales Line table, and do something like this:
    IF Type = Type::Item THEN 
    BEGIN
      IF Item.GET("No.") THEN
       VALIDATE(Quantity, Item."Default Quantity"
    END;
    
  • kenneth73kenneth73 Member Posts: 59
    Thought it was something like that.

    But, if there were a standard config for it, then... :):) :D

    Thanks
Sign In or Register to comment.