Codeunit 70491901 EOS055 Packaging Management
Codeunit 70491901 EOS055 Packaging Management
Methods
GetHandler
procedure GetHandler(var PackInstrCalculation: Interface "EOS055 Packaging Calculation"): Boolean
returns the handler for the packaging calculation.
Parameters / Return Value
PackInstrCalculation
Interface "EOS055 Packaging Calculation"interface of the packaging calculation
Returns
Booleantrue if a handler was found
IsPackagingMaterial
procedure IsPackagingMaterial(ItemNo: Code[20]): Boolean
returns true if the item is a packaging material. item numbertrue if the item is a packaging material
Parameters / Return Value
ItemNo
Code[20]Returns
Boolean
ContentIsEditable
procedure ContentIsEditable(OrderType: Enum "EOS055 Content Order Type"): Boolean
returns true if the content can be modified/deleted, f.e. a handling unit created manually for the packing list.
Parameters / Return Value
OrderType
Enum "EOS055 Content Order Type"Returns
Booleantrue if the content can be modified
LookupPackagingInstruction
procedure LookupPackagingInstruction(SourceDoc: Variant; var LookupText: Text): Boolean
Lookup a packaging instruction for a given source document line.
Parameters / Return Value
SourceDoc
VariantThe source document line.
LookupText
Text[]The lookup value.
Returns
Booleantrueif the lookup was confirmed.
Events
OnPostHandlingUnitContentsBeforeChangeStatus
local procedure OnPostHandlingUnitContentsBeforeChangeStatus(var HandlingUnit: Record "EOS055 Handling Unit";SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20];var NewStatus: Enum "EOS055.01 Handling Unit Status";var ChangeStatus: Boolean)
Raised before the status of a handling unit is changed during posting of document. You can use this to apply a custom status or change the way the new status is calculated.
Parameters / Return Value
HandlingUnit
Record "EOS055 Handling Unit"The handling unit.
SourceType
IntegerThe document source type being posted.
SourceSubtype
IntegerThe document source subtype being posted.
SourceNo
Code[20]The document source no. being posted.
NewStatus
Enum "EOS055.01 Handling Unit Status"The new status. This value is already pre-set by the default logic with the status that would be applied to the handling unit.
ChangeStatus
BooleanSpecifies if the status should actually be changed. Set this to
trueto cause the status to change. Set this tofalseif you do not want the status to change. This value is already pre-set by the default logic and will betrueif the status would be changed.
OnPostDocumentBeforeCreateHandlingUnitContents
local procedure OnPostDocumentBeforeCreateHandlingUnitContents(SourceType: Integer; SourceSubtype: Integer; SourceNo: Code[20]; var TempHuBufferToPost: Record "EOS055 Handling Unit Buffer" temporary; TempHandlingUnit: Record "EOS055 Handling Unit" temporary; var IsHandled: Boolean)
Raised on posting document before insert the Handling Unit Content.
Parameters / Return Value
SourceType
IntegerThe Source Type
SourceSubtype
IntegerThe Source Subtype
SourceNo
Code[20]The Source No.
TempHuBufferToPost
Record "EOS055 Handling Unit Buffer"Handling Unit Buffer with lines to insert in the Handling Unit Content
TempHandlingUnit
Record "EOS055 Handling Unit"Current Handling Unit
IsHandled
Booleanif true, doesn’t insert the Handling Unit Content
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.