Bin code in Job Journal

transmin09transmin09 Member Posts: 13
Hi

We have noticed that when passing a job journal in NAV and selecting type as @item, the default bin code for the item selected does not appear.

This is causing a problem because when the journal is posted it is updating the invenotry qty but not the bin content qty.

How can we fix this such that everytime an item is selected in a job journal it brings up the default bin code for that item as well?

Comments

  • ara3nara3n Member Posts: 9,256
    The default bin functionality is for warehouse only. You'll need to make a modification to the Job Journal table.
    Location Code - OnValidate()
    IF Type = Type::Item THEN BEGIN
      GetLocation("Location Code");
      Location.TESTFIELD("Directed Put-away and Pick",FALSE);
    END;
    "Bin Code" := '';
    //MOD Start
    IF Type = Type::Item THEN BEGIN
      BinContent.setrange("Item No.","No.");
      BinContent.setrange("Location Code","Location code");
      BinContent.setrange(Default,true);
     if BINContent.findfirst then
      "Bin Code" :=   BINContent.code;
    END;
    //MOD End
    CheckItemAvailable;
    IF Type = Type::Item THEN
      GetUnitCost;
    Variant Code - OnValidate()
    
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
Sign In or Register to comment.