Table of Contents

GOB EIP Delay Mgt.

Properties

Property Value
Object Type Codeunit
Object Subtype Normal
Object ID 5320700
Accessibility Level Public

Procedures

CreateDelayEntry()

Creates a delay entry for a document line. If a delay entry already exists for thee document line, the delay days are summed up, starting at origin shipment date.

Syntax

CreateDelayEntry(DocumentLineId: RecordId, OriginShipmentDate: Date, NewShipmentDate: Date)

Parameters

DocumentLineId
 Type: RecordId

OriginShipmentDate
 Type: Date

The original shipment date (xRec."Shipment Date"). If there is an existing entry, this parameter is ignored and the value is taken from the entry.

NewShipmentDate
 Type: Date

The new, delayed shipment date.

DeleteDelayEntrySelection()

Deletes multiple delay entries and sets "Shipment Date Calc. Status" back to "Calculated".

Syntax

DeleteDelayEntrySelection(var EIPDelayEntry: Record "GOB EIP Delay Entry")

Parameters

EIPDelayEntry
 Type: Record "GOB EIP Delay Entry"

DeleteDelayEntry()

Deletes a single delay entry.

Syntax

DeleteDelayEntry(DocumentLineId: RecordId, UpdateShptCalcStatus: Boolean)

Parameters

DocumentLineId
 Type: RecordId

UpdateShptCalcStatus
 Type: Boolean

Set "Shipment Date Calc. Status" back to "Calculated".

UpdateShptCalcStatus()

Changes the "Shipment Date Calc. Status" to a specified value.

Syntax

UpdateShptCalcStatus(DocumentLineId: RecordId, NewStatus: Enum "GOB Shipment Date Calc. Status")

Parameters

DocumentLineId
 Type: RecordId

A record ID of a document line. Table must contain a field with name "GOB Shipment Date Calc. Status".

NewStatus
 Type: Enum "GOB Shipment Date Calc. Status"

New value for "Shipment Date Calc. Status".

IsDelayed()

Checks, if a document line is delayed. This depends on the availability setup of the document line's location and the shipment date change.

Syntax

[Boolean] := IsDelayed(DocumentLineId: RecordId, LocationCode: Code[10], OriginShipmentDate: Date, NewShipmentDate: Date)

Parameters

DocumentLineId
 Type: RecordId

LocationCode
 Type: Code[10]

OriginShipmentDate
 Type: Date

NewShipmentDate
 Type: Date

ShowDelayEntries()

Shows all delay entries for a document.

Syntax

ShowDelayEntries(ForDocumentId: RecordId)

Parameters

ForDocumentId
 Type: RecordId

May contain a document line or a document header Record ID.

CountDelayedDocuments()

Returns the number of delayed documents for a specific document type.

This function is intended for use in a role center cue.

Syntax

[Integer] := CountDelayedDocuments(AvailabilityDataType: Enum "GOB Availability Data Type", IsLookUp: Boolean)

Parameters

AvailabilityDataType
 Type: Enum "GOB Availability Data Type"

A document type of the availability calculation module.

IsLookUp
 Type: Boolean

If true, this implements a lookup, instead.

Return

Integer

Return value of type Integer.

GetNextEntryNo()

Syntax

[Integer] := GetNextEntryNo()

OnBeforeModifyDelayEntry()

Syntax

OnBeforeModifyDelayEntry(DocumentLine: Variant, OriginShipmentDate: Date, NewShipmentDate: Date, var EIPDelayEntry: Record "GOB EIP Delay Entry")

Parameters

DocumentLine
 Type: Variant

OriginShipmentDate
 Type: Date

NewShipmentDate
 Type: Date

EIPDelayEntry
 Type: Record "GOB EIP Delay Entry"

OnShowDelayEntries_NewType()

Syntax

OnShowDelayEntries_NewType(ForDocumentId: RecordId)

Parameters

ForDocumentId
 Type: RecordId

OnBeforeIsDelayed()

Syntax

OnBeforeIsDelayed(DocumentLineId: RecordId, LocationCode: Code[10], OriginShipmentDate: Date, NewShipmentDate: Date, var IsHandled: Boolean, var ReturnValue: Boolean)

Parameters

DocumentLineId
 Type: RecordId

LocationCode
 Type: Code[10]

OriginShipmentDate
 Type: Date

NewShipmentDate
 Type: Date

IsHandled
 Type: Boolean

ReturnValue
 Type: Boolean