VENDOR field in FIXED ASSET card

lavanyaballurgilavanyaballurgi Member Posts: 235
Hello Experts.
I was just wondering is there any way to fill the Vendor Field in FIXED ASSET card?
I checked in Cronus DB and even after posting an invoice the field VENDOR in FIXED ASSET is empty(which means it need to be filled manually?)

So now if I want to fill this field while posting an invoice of Fixed asset i think I need to do changes in CODEUNIT 90. Can anyone tell me exactly where to do this in CU90?

Answers

  • mohana_cse06mohana_cse06 Member Posts: 5,504
    I guess we have to enter Vendor No. manually..Help says
    Here you can enter the number of the vendor from which you purchased this fixed asset.
  • lavanyaballurgilavanyaballurgi Member Posts: 235
    Yes helps says so but I added 2 lines in CU90 & it seems to work


    IF PurchLine.Type = PurchLine.Type::"Fixed Asset" THEN BEGIN
    PurchLine.TESTFIELD("Job No.",'');
    PurchLine.TESTFIELD("Depreciation Book Code");
    PurchLine.TESTFIELD("FA Posting Type");
    FA.GET(PurchLine."No.");
    //my development +++
    FA."Vendor No." := PurchLine."Buy-from Vendor No.";
    FA.MODIFY;
    //my development ---
    DeprBook.GET(PurchLine."Depreciation Book Code");
    FA.TESTFIELD("Budgeted Asset",FALSE);

    It works fine. Can anyone see & tell me if it has any side-effects?
  • lavanyaballurgilavanyaballurgi Member Posts: 235
    Now this give rise to one more issue... while doing FA Reclass how should I copy Vendor No. from Parent FA to child FA? i saw lots of codeunit (5641 to 5645).
    which one to modify?
Sign In or Register to comment.