hi all i want to filter customer sales price in sales order
lets say i set item A, B and C for Customer 001
so when i create sales order for customer 001
the lookup for Item no at detail part only show item A, B,C
how to do that?
thanks
this is my code
but still wrong
SalesPrice.FILTERGROUP(4);
SalesPrice.SETRANGE(SalesPrice."Sales Type",SalesPrice."Sales Type"::Customer);
SalesPrice.SETRANGE(SalesPrice."Sales Code",'10000');
SalesPrice.FILTERGROUP(0);
IF FORM.RUNMODAL(0,SalesPrice) = ACTION::LookupOK THEN
BEGIN
//"My Code
END;
Answers
Do you want to lookup only those items in No. field of line table?
i create new field to filter this
or do you think it's better if I filter directly to Sales Line Table , field = No.??
don't disturb the No. field of line.
i create new field named Item Number
here is the full code
customer price group TEST, i do it using hardcode first
it seems like because i forgot to put
if salesprice.find('-') then
now it works
thanks for your help