Hello everybody,
I'd like to ask for a littel assistance.
I have the following C/AL code:
IF ("Sales Shipment Line".Type = Type::Item) THEN BEGIN
gSalesLine.SETRANGE(gSalesLine."Document Type",1);
IF (gSalesLine.GET(gSalesLine."Document Type"::Order,"Sales Shipment Line"."Order No.","Sales Shipment Line"."Line No."))THEN BEGIN
IF (gSalesLine.Type = Type::Item) THEN BEGIN
gSalesLine.FINDFIRST;
END
END
END;
By which I'd like to retrieve the ordered quantity for a certain order from Sales Line (by accessing it from Sales Shipment Line), but for some reasons, the gSalesLine variable always gets stuck on the first record it finds (which is Quote) and for some reasons it just ignores the other SETRANGE parts... I'm not a professional NAV developer (yet), so a little help would come in handy.
Thanks in advance : Ruben
*This post is locked for comments
I have the same question (0)