
I have one field in item table field x
and i need to add that field in salesline and multiply with quantity
i have added ttriger on validate on field x on saleline but iam getting zero. any suggestion
Hi,
you must put in onvalidate of salesline.quantity field:
OnValidate
var
xItem : record item;
if type=type::item then begin
xitem.get("no.");
x := xitem.fieldx * quantity;
begin
end;
Don't forget to help the community by verifying the answer or at least like the suggestion if it did help in any way. It will let others know that the topic has verified answer and was beneficial to you.
Roberto Corella
Business Central developer
blog: https://blog.msdyn365bc.es
youtube channel: www.youtube.com/.../UCeIS0DjQXp4R-aWY20PSVyg
Linkedin: www.linkedin.com/.../
Twitter: https://twitter.com/rccorella