Options

Purchase Invoice - Get Reciept Lines

webbman75webbman75 Member Posts: 12
Hi All,

I am new to this forum and also new to Navision as well, got a lot to learn and i hope i will learn from you guys out there.

Ok my first question (of one of many hehe)

I would like to know that in "Purchase Invoice - Get Reciept Lines" when i click on that fuctions "Purchase Invoice - Get Reciept Lines" it will give me the right "Buy-from Vendor No." but i what want is the minute person click on the Get Reciept Lines it will display the entire Vendor's get reciept line?..

I have started to look at the code in Form 5709 Get Receipt Lines but kind of stuck on which bit to edit:


SetPurchHeader(VAR PurchHeader2 : Record "Purchase Header")
PurchHeader.GET(PurchHeader2."Document Type",PurchHeader2."No.");
PurchHeader.TESTFIELD("Document Type",PurchHeader."Document Type"::Invoice);

IsFirstDocLine() : Boolean
TempPurchRcptLine.RESET;
TempPurchRcptLine.COPYFILTERS(Rec);
TempPurchRcptLine.SETRANGE("Document No.","Document No.");
IF NOT TempPurchRcptLine.FIND('-') THEN BEGIN
PurchRcptLine.COPYFILTERS(Rec);
PurchRcptLine.SETRANGE("Document No.","Document No.");
PurchRcptLine.FIND('-');
TempPurchRcptLine := PurchRcptLine;
TempPurchRcptLine.INSERT;
END;
IF "Line No." = TempPurchRcptLine."Line No." THEN
EXIT(TRUE);

Comments

  • Options
    kinekine Member Posts: 12,562
    Sorry, but I do not understand what you want... :oops:
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    webbman75webbman75 Member Posts: 12
    Hi,

    I done some screen shots:

    http://www.gymboree.com.hk/navision/

    the first screen is what it looks like which is displaying the current vendor but on the screen which is what i want which is to display all of the vendors in a list.

    cheers
  • Options
    kinekine Member Posts: 12,562
    OK, you need to look into codeunit 74 - Purch.-Get Receipt - there is all what you need...

    but still I do not know, why you need that. You can enter only lines for the same vendor on one document... #-o
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • Options
    webbman75webbman75 Member Posts: 12
    thanks for the indication, to be honest its the clients request to have it in this way
Sign In or Register to comment.