2013--- Codeunit Whse. Integration management CheckBinTypeCode() Location.GET(LocationCode); Location.TESTFIELD("Bin Mandatory"); IF NOT Location."Directed Put-away and Pick" THEN EXIT; IF BinCode = Location."Adjustment Bin Code" THEN ERROR(Text000,BinCodeFieldCaption,LocationCode);
2013-- New Bin Code - OnValidate() TESTFIELD("Entry Type","Entry Type"::Transfer); IF "New Bin Code" <> xRec."New Bin Code" THEN BEGIN TESTFIELD("New Location Code"); IF "New Bin Code" <> '' THEN BEGIN GetBin("New Location Code","New Bin Code"); GetLocation("New Location Code"); Location.TESTFIELD("Bin Mandatory"); IF CurrFieldNo <> 0 THEN WMSManagement.CheckItemJnlLineFieldChange(Rec,xRec,FIELDCAPTION("New Bin Code")); TESTFIELD("New Location Code",Bin."Location Code"); WhseIntegrationMgt.CheckBinTypeCode(DATABASE::"Item Journal Line", FIELDCAPTION("New Bin Code"), "Location Code", "New Bin Code", "Entry Type"); END; END; ReserveItemJnlLine.VerifyChange(Rec,xRec);Where the culprit is :
2009-- New Bin Code - OnValidate() TESTFIELD("Entry Type","Entry Type"::Transfer); IF "New Bin Code" <> xRec."New Bin Code" THEN BEGIN TESTFIELD("New Location Code"); IF "New Bin Code" <> '' THEN BEGIN GetBin("New Location Code","New Bin Code"); GetLocation("New Location Code"); Location.TESTFIELD("Bin Mandatory"); IF CurrFieldNo <> 0 THEN WMSManagement.CheckItemJnlLineFieldChange(Rec,xRec,FIELDCAPTION("New Bin Code")); TESTFIELD("New Location Code",Bin."Location Code"); END; END; ReserveItemJnlLine.VerifyChange(Rec,xRec);
Comments
Regards