Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

...

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Assembly", 'OnGetAssemblyOrderLines_OnIncludeAssemblyLine''', true, true)]
    local procedure OnGetAssemblyOrderLines_OnIncludeAssemblyLine(_AssemblyLine: Record "Assembly Line"; var _IncludeInOrderLines: Boolean)
    begin
    end;

Example

    // [Example]
    // Hide Machine resources from the 'Consumption' Assembly Lines
    //
    // Hidden lines will be posted automatically and proportionally to each partial Quantity To Assemble
    // 
    // Displayed lines MUST be fully registered for each partial Quantity To Assemble meaning
    // default Over-/UnderDelivery 'Blocked' should NOT be changed/customized at the 'Consumption' lines.
    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Assembly", 'OnGetAssemblyOrderLines_OnIncludeAssemblyLine''', true, true)]
    local procedure MyOnGetAssemblyOrderLines_OnIncludeAssemblyLine(_AssemblyLine: Record "Assembly Line"; var _IncludeInOrderLines: Boolean)
    var
        Resource: Record Resource;
    begin
        if _AssemblyLine.Type = _AssemblyLine.Type::Resource then begin
            _AssemblyLine.TestField("No.");
            Resource.Get(_AssemblyLine."No.");
            _IncludeInOrderLines := _IncludeInOrderLines and (Resource.Type <> Resource.Type::Machine);
        end;
    end;



Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "assembly" and label = "example" and label = "oninclude"

...