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
VariantToRec
VariantClearDimensionsAfterCopy
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. shipping info from related source document.
Parameters / Return Value
EOS066DocumentShippingInfo
Record "EOS066 Document Shipping Info"Doc. shipping info record to init
Source
variantSource document
SourceSysID
GuidSource document system id
OverwriteExisting
BooleanIf 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. shipping info from related source document.
Parameters / Return Value
EOS066DocumentShippingInfo
Record "EOS066 Document Shipping Info"Doc. shipping info record to calculate
Force
BooleanIf TRUE, also manually modified record will be recalculated
RecalcHeader
BooleanIf TRUE, header values (i.e. shipping notes) are cleared
RecalcDim
BooleanIf TRUE, dimension values (i.e. weights) are cleared
Hidedialog
BooleanIndicates if UI is enabled or not
OpenShippingInfoCard
procedure OpenShippingInfoCard(SourceTableID: integer; SourceSysID: Guid)
Opens doc. shipping info card.
Parameters / Return Value
SourceTableID
integerSource document table id
SourceSysID
GuidSource 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. shipping 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
BooleanDeleteExisting
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
IntegerNewValue
BooleanHidedialog
Boolean
DocShippingInfoEnabled
procedure DocShippingInfoEnabled(Hidedialog: Boolean): Boolean
Checks if shipping info global setup is enabled or not
Parameters / Return Value
Hidedialog
BooleanSpecifies if UI is suppressed
Returns
BooleanTRUE: setup enabled, FALSE: setup disabled
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.