Codeunit 18122366 EOS CWS Doc. Grouping Mgmt

Codeunit 18122366 EOS CWS Doc. Grouping Mgmt

Methods

GetAddress

procedure GetAddress(var GroupingBuffer: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • GroupingBuffer Record "EOS CWS Doc. Grouping Entry"

Regroup

procedure Regroup(DocVariant: Variant)

Parameters / Return Value

  • DocVariant Variant

RegroupFromSource

procedure RegroupFromSource(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer)

Parameters / Return Value

  • SourceType Integer

  • SourceSubtype Integer

  • SourceNo Code[20]

  • SourceLineNo Integer


GroupFromWhseRequest

procedure GroupFromWhseRequest(var WhseRequest: Record "Warehouse Request"; var TmpGroupingBuffer: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • WhseRequest Record "Warehouse Request"

  • TmpGroupingBuffer Record "EOS CWS Doc. Grouping Entry"


FillGroupEntry

procedure FillGroupEntry(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; Inbound: Boolean; var Buffer: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • SourceType Integer

  • SourceSubtype Integer

  • SourceNo Code[20]

  • SourceLineNo Integer

  • Inbound Boolean

  • Buffer Record "EOS CWS Doc. Grouping Entry"


GetCombinePerFields

procedure GetCombinePerFields(var TmpField: Record "Field")

Parameters / Return Value

  • TmpField Record "Field"

CollectGroupEntries

procedure CollectGroupEntries(WhseDocVariant: Variant; var TmpGroupEntry: Record "EOS CWS Doc. Grouping Entry"; CollectAll: Boolean)

Parameters / Return Value

  • WhseDocVariant Variant

  • TmpGroupEntry Record "EOS CWS Doc. Grouping Entry"

  • CollectAll Boolean


CollectGroupTree

procedure CollectGroupTree(WhseDocVariant: Variant; var TmpGroupEntry: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • WhseDocVariant Variant

  • TmpGroupEntry Record "EOS CWS Doc. Grouping Entry"


CountCollectedGroupTree

procedure CountCollectedGroupTree(var TmpGroupEntry: Record "EOS CWS Doc. Grouping Entry"): integer

Parameters / Return Value

  • TmpGroupEntry Record "EOS CWS Doc. Grouping Entry"

  • Returns integer


HasGroupingChanged

procedure HasGroupingChanged(Rec: Variant; xRec: Variant; Inbound: Boolean): Boolean

Parameters / Return Value

  • Rec Variant

  • xRec Variant

  • Inbound Boolean

  • Returns Boolean


ToShptFromBuffer

procedure ToShptFromBuffer(var WhseShptHeader: Record "Warehouse Shipment Header"; var TmpWhseDocLine: Record "EOS CWS Whse. Doc. Line Buffer")

Parameters / Return Value

  • WhseShptHeader Record "Warehouse Shipment Header"

  • TmpWhseDocLine Record "EOS CWS Whse. Doc. Line Buffer"


CopyDocGroupingEntry

procedure CopyDocGroupingEntry(FromDocumentType: Integer; FromNumber: Code[20]; ToDocumentType: Integer; ToNumber: Code[20])

Parameters / Return Value

  • FromDocumentType Integer

  • FromNumber Code[20]

  • ToDocumentType Integer

  • ToNumber Code[20]


CopySourceDocGroupingEntryToPostedSourceDoc

procedure CopySourceDocGroupingEntryToPostedSourceDoc(FromDocGroupingEntry: Record "EOS CWS Doc. Grouping Entry"; PostedSourceNo: Code[20])

Parameters / Return Value

  • FromDocGroupingEntry Record "EOS CWS Doc. Grouping Entry"

  • PostedSourceNo Code[20]


ToRcptFromBuffer

procedure ToRcptFromBuffer(var WhseRcptHeader: Record "Warehouse Receipt Header"; var TmpWhseDocLine: Record "EOS CWS Whse. Doc. Line Buffer")

Parameters / Return Value

  • WhseRcptHeader Record "Warehouse Receipt Header"

  • TmpWhseDocLine Record "EOS CWS Whse. Doc. Line Buffer"


PartyLoaderTypeInfoAsTextValidate

procedure PartyLoaderTypeInfoAsTextValidate(PartyLoaderTypeInfoAsText: Option "-"," ",Vendor,Contact; var DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • PartyLoaderTypeInfoAsText Option

    "-" (0) , " " (1) , Vendor (2) , Contact (3)

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"


FreightTypeInfoAsTextValidate

procedure FreightTypeInfoAsTextValidate(FreightTypeInfoAsText: Option "-","Agent Code","Carriage Consigner","Carriage Forward"; var DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • FreightTypeInfoAsText Option

    "-" (0) , "Agent Code" (1) , "Carriage Consigner" (2) , "Carriage Forward" (3)

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"


SetAsText

procedure SetAsText(DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry"; var FreightTypeInfoAsText: Option "-","Agent Code","Carriage Consigner","Carriage Forward"; var PartyLoaderTypeInfoAsText: Option "-"," ",Vendor,Contact)

Parameters / Return Value

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"

  • FreightTypeInfoAsText Option

    "-" (0) , "Agent Code" (1) , "Carriage Consigner" (2) , "Carriage Forward" (3)

  • PartyLoaderTypeInfoAsText Option

    "-" (0) , " " (1) , Vendor (2) , Contact (3)


ClearShipmentDocGroupingEntryInfo

procedure ClearShipmentDocGroupingEntryInfo(DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"

DeletePostedShipmentDocGroupingEntryInfo

procedure DeletePostedShipmentDocGroupingEntryInfo(PostedWhseShipmentHeader: Record "Posted Whse. Shipment Header")

Parameters / Return Value

  • PostedWhseShipmentHeader Record "Posted Whse. Shipment Header"

FiltersSourceDocumentShipmentInfo

procedure FiltersSourceDocumentShipmentInfo(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; var DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • SourceType Integer

  • SourceSubtype Integer

  • SourceNo Code[20]

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"


FillSalesDocumentShipmentInfo

procedure FillSalesDocumentShipmentInfo(SalesHeader: Record "Sales Header"; var DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • SalesHeader Record "Sales Header"

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"


FillPurchaseDocumentShipmentInfo

procedure FillPurchaseDocumentShipmentInfo(PurchaseHeader: Record "Purchase Header"; var DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"


FillTransferDocumentShipmentInfo

procedure FillTransferDocumentShipmentInfo(TransferHeader: Record "Transfer Header"; var DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • TransferHeader Record "Transfer Header"

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"


FillServiceDocumentShipmentInfo

procedure FillServiceDocumentShipmentInfo(ServiceHeader: Record "Service Header"; var DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

Parameters / Return Value

  • ServiceHeader Record "Service Header"

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"


Events

OnBeforeClearShipmentDocGroupingEntryInfo

local procedure OnBeforeClearShipmentDocGroupingEntryInfo(var DocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

This event is raised before clear shipment reporting info. You can use to clear your custom fields.

Parameters / Return Value

  • DocGroupingEntry Record "EOS CWS Doc. Grouping Entry"

    Shipping Info


OnAfterRegroup

local procedure OnAfterRegroup(DocVariant: Variant; GroupNos: List of [Integer])

This event is raised after regrouping.

Parameters / Return Value

  • DocVariant Variant

    Current document header

  • GroupNos List[Integer]

    List of all the Group Nos processed


OnCopyDocGroupingEntryOnAfterModify

local procedure OnCopyDocGroupingEntryOnAfterModify(FromDocGroupingEntry: Record "EOS CWS Doc. Grouping Entry"; var ToDocGroupingEntry: Record "EOS CWS Doc. Grouping Entry")

This event is raised after copying the new EOS CWS Doc. Grouping Entry record

Parameters / Return Value

  • FromDocGroupingEntry Record "EOS CWS Doc. Grouping Entry"

    Old EOS CWS Doc. Grouping Entry

  • ToDocGroupingEntry Record "EOS CWS Doc. Grouping Entry"

    New EOS CWS Doc. Grouping Entry


OnAfterFillGroupEntrySalesHeader

local procedure OnAfterFillGroupEntrySalesHeader(SalesHeader: Record "Sales Header"; var Buffer: Record "EOS CWS Doc. Grouping Entry")

Raised after copying data from the Sales Header to the Grouping Entry

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    The Sales Header

  • Buffer Record "EOS CWS Doc. Grouping Entry"

    The Doc. Grouping Entry


OnAfterFillGroupEntryPurchHeader

local procedure OnAfterFillGroupEntryPurchHeader(PurchHeader: Record "Purchase Header"; Inbound: Boolean; var Buffer: Record "EOS CWS Doc. Grouping Entry")

Raised after copying data from the Purchase Header to the Grouping Entry

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    The Purchase Header

  • Inbound Boolean

    Wether it’s inbound

  • Buffer Record "EOS CWS Doc. Grouping Entry"

    The Doc. Grouping Entry


OnAfterFillGroupEntryTransHeader

local procedure OnAfterFillGroupEntryTransHeader(TransHeader: Record "Transfer Header"; Inbound: Boolean; var Buffer: Record "EOS CWS Doc. Grouping Entry")

Raised after copying data from the Transfer Header to the Grouping Entry

Parameters / Return Value

  • TransHeader Record "Transfer Header"

    The Transfer Header

  • Inbound Boolean

    Wether it’s inbound

  • Buffer Record "EOS CWS Doc. Grouping Entry"

    The Doc. Grouping entry


OnAfterFillGroupEntryServiceHeader

local procedure OnAfterFillGroupEntryServiceHeader(ServiceHeader: Record "Service Header"; var Buffer: Record "EOS CWS Doc. Grouping Entry")

Raised after copying data from the Service Header to the Grouping entry

Parameters / Return Value

  • ServiceHeader Record "Service Header"

    The Service Header

  • Buffer Record "EOS CWS Doc. Grouping Entry"

    The Doc. Grouping entry


OnBeforeDeleteOldGroupEntries

local procedure OnBeforeDeleteOldGroupEntries(DocVariant: Variant; var GroupEntriesToDelete: Record "EOS CWS Doc. Grouping Entry")

Raised before deleting old grouping entries after regrouping.

Parameters / Return Value

  • DocVariant Variant

    The document that triggered the regroup.

  • GroupEntriesToDelete Record "EOS CWS Doc. Grouping Entry"

    The unused grouping entries.


OnBeforeRegroupFromSource

local procedure OnBeforeRegroupFromSource(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; SourceLineNo: Integer; var IsHandled: Boolean)

Raised on RegroupFromSource to allow skip regroup

Parameters / Return Value

  • SourceType Integer

    The SourceType integer

  • SourceSubtype Integer

    The SourceSubtype integer

  • SourceNo Code[20]

    The SourceNo code[20]

  • SourceLineNo Integer

    The SourceLineNo integer

  • IsHandled Boolean

    The IsHandled boolean


OnBeforeModifyGroupEntryOnFindGroup

local procedure OnBeforeModifyGroupEntryOnFindGroup(var GroupEntry: Record "EOS CWS Doc. Grouping Entry")

Raised in the procedure FindGroup, before modify the Group Entry.

Parameters / Return Value

  • GroupEntry Record "EOS CWS Doc. Grouping Entry"

    Record to modify


OnFilterWhseShptLineOnGroupFromWhseShpt

local procedure OnFilterWhseShptLineOnGroupFromWhseShpt(var WarehouseShipmentLine: Record "Warehouse Shipment Line")

Raised after filter warehouse shipment line to regroup.

Parameters / Return Value

  • WarehouseShipmentLine Record "Warehouse Shipment Line"

    Warehouse Shipment Line to filter



EOS Labs -