Adding Customer Name And Consignee in Report

sachin421sachin421 Member Posts: 38
edited 2014-04-15 in NAV Three Tier
Hi experts,
actually I want to add customer name and consignee name in the report picking list I am writing code but its not working I think my
code is not correct that's why am facing problem. This code only for customer

IF ("Destination Type" = "Destination Type"::Customer) AND ("Source Type" = 37) THEN BEGIN
TmpWhseActLine.SETRANGE("Destination Type","Destination Type");
TmpWhseActLine.SETRANGE("Destination No.","Destination No.");
IF TmpWhseActLine.FINDFIRST THEN BEGIN
RecCustomer.GET("Destination No.");
CustName := RecCustomer.Name;
END
END
please help me suggest me the right code.
Thank you in advance
Regards,
Sachin

Comments

Sign In or Register to comment.