Codeunit 18007979 EOS066 Shipping Info Mgt.

Codeunit 18007979 EOS066 Shipping Info Mgt.

Gathers all functions used in shipping info management

Methods

CopyDocShippingInfo

procedure CopyDocShippingInfo(FromRec: Variant; ToRec: Variant; ClearDimensionsAfterCopy: Boolean)

Parameters / Return Value

  • FromRec Variant

  • ToRec Variant

  • ClearDimensionsAfterCopy Boolean


DeleteRelatedShippingInfo

procedure DeleteRelatedShippingInfo(RecID: Guid)

Parameters / Return Value

  • RecID Guid

InitShippingInfoKey

procedure InitShippingInfoKey(var EOS066DocumentShippingInfo: Record "EOS066 Document Shipping Info"; Source: variant; SourceSysID: Guid; OverwriteExisting: Boolean)

Fills explicit source key (table id, document no., …) of a doc. shippng info from related source document.

Parameters / Return Value

  • EOS066DocumentShippingInfo Record "EOS066 Document Shipping Info"

    Doc. shipping info record to init

  • Source variant

    Source document

  • SourceSysID Guid

    Source document system id

  • OverwriteExisting Boolean

    If TRUE, if any key field is already filled it is cleared


InitDocShippingInfoDocValues

procedure InitDocShippingInfoDocValues(var EOS066DocumentShippingInfo: Record "EOS066 Document Shipping Info"; Force: Boolean; RecalcHeader: Boolean; RecalcDim: Boolean; Hidedialog: Boolean)

Calculated values (shipment method, shipping agent, …) of a doc. shippng info from related source document.

Parameters / Return Value

  • EOS066DocumentShippingInfo Record "EOS066 Document Shipping Info"

    Doc. shipping info record to calculate

  • Force Boolean

    If TRUE, also manually modified record will be recalculated

  • RecalcHeader Boolean

    If TRUE, header values (i.e. shipping notes) are cleared

  • RecalcDim Boolean

    If TRUE, dimension values (i.e. weights) are cleared

  • Hidedialog Boolean

    Indicates if UI is enabled or not


OpenShippingInfoCard

procedure OpenShippingInfoCard(SourceTableID: integer; SourceSysID: Guid)

Opens doc. shipping info card.

Parameters / Return Value

  • SourceTableID integer

    Source document table id

  • SourceSysID Guid

    Source document system id


GetPageCardLastShipNo

procedure GetPageCardLastShipNo(EOS066DocumentShippingInfo: Record "EOS066 Document Shipping Info") LastShipNo: code[20]

Retrieves last shipping no. for related source document to be shown in doc. info card.

Parameters / Return Value

  • EOS066DocumentShippingInfo Record "EOS066 Document Shipping Info"

    Doc. shipping info record to open

  • Returns code[20]

    Code containing last shipping no.


DrillDownPageCardLastShipNo

procedure DrillDownPageCardLastShipNo(EOS066DocumentShippingInfo: Record "EOS066 Document Shipping Info")

Drills down last shipping no. down from doc. info card.

Parameters / Return Value

  • EOS066DocumentShippingInfo Record "EOS066 Document Shipping Info"

    Doc. shipping info record to open


GetPageCardRecipient

procedure GetPageCardRecipient(EOS066DocumentShippingInfo: Record "EOS066 Document Shipping Info") RecipientText: Text

Retrieves recipient for related source document to be shown in doc. info card.

Parameters / Return Value

  • EOS066DocumentShippingInfo Record "EOS066 Document Shipping Info"

    Doc. shipping info record to open

  • Returns Text

    Text containing recipient data


UpdateDocumentFromDocShInfo

procedure UpdateDocumentFromDocShInfo(EOS066DocumentShippingInfo: Record "EOS066 Document Shipping Info")

Updates document from related doc. shippng info.

Parameters / Return Value

  • EOS066DocumentShippingInfo Record "EOS066 Document Shipping Info"

    Source doc. shipping info


LoadDefaults

procedure LoadDefaults(Hidedialog: Boolean; DeleteExisting: Boolean)

Parameters / Return Value

  • Hidedialog Boolean

  • DeleteExisting Boolean


UpdateFieldSetupLine

procedure UpdateFieldSetupLine(var EOS066DocShippingFields: Record "EOS066 Doc. Shipping Fields"; FieldNoToUpd: Integer; NewValue: Boolean; Hidedialog: Boolean)

Parameters / Return Value

  • EOS066DocShippingFields Record "EOS066 Doc. Shipping Fields"

  • FieldNoToUpd Integer

  • NewValue Boolean

  • Hidedialog Boolean


DocShippingInfoEnabled

procedure DocShippingInfoEnabled(Hidedialog: Boolean): Boolean

Checks if shipping info global setup is enabled or not

Parameters / Return Value

  • Hidedialog Boolean

    Specifies if UI is suppressed

  • Returns Boolean

    TRUE: setup enabled, FALSE: setup disabled



EOS Labs -