Codeunit 18123300 EOS047 OVR Management
Codeunit 18123300 EOS047 OVR Management
Methods
CheckSalesLineOverdelivery
procedure CheckSalesLineOverdelivery(SalesLine: Record "Sales Line"; CurrFieldNo: Integer; WithError: Boolean): Integer
Checks if a given sales line is allowed for overdelivery.
Parameters / Return Value
SalesLine
Record "Sales Line"
The sales line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
WithError
Boolean
Specifies whether a runtime error is thrown, if overdelivery is not allowed.
Returns
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
CheckPurchLineOverdelivery
procedure CheckPurchLineOverdelivery(PurchLine: Record "Purchase Line"; CurrFieldNo: Integer; WithError: Boolean): Integer
Checks if a given purchase line is allowed for overdelivery.
Parameters / Return Value
PurchLine
Record "Purchase Line"
The purchase line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
WithError
Boolean
Specifies whether a runtime error is thrown, if overdelivery is not allowed.
Returns
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
CheckTransferLineOverdelivery
procedure CheckTransferLineOverdelivery(TransferLine: Record "Transfer Line"; CurrFieldNo: Integer; WithError: Boolean): Integer
Checks if a given transfer line is allowed for overdelivery.
Parameters / Return Value
TransferLine
Record "Transfer Line"
The transfer line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
WithError
Boolean
Specifies whether a runtime error is thrown, if overdelivery is not allowed.
Returns
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
CheckWhseShptLineOverdelivery
procedure CheckWhseShptLineOverdelivery(WhseShptLine: Record "Warehouse Shipment Line"; CurrFieldNo: Integer; WithError: Boolean): Integer
Checks if a given warehouse shipment line is allowed for overdelivery.
Parameters / Return Value
WhseShptLine
Record "Warehouse Shipment Line"
The warehouse shipment line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
WithError
Boolean
Specifies whether a runtime error is thrown, if overdelivery is not allowed.
Returns
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
CheckWhseRcptLineOverdelivery
procedure CheckWhseRcptLineOverdelivery(WhseRcptLine: Record "Warehouse Receipt Line"; CurrFieldNo: Integer; WithError: Boolean): Integer
Checks if a given warehouse receipt line is allowed for overdelivery.
Parameters / Return Value
WhseRcptLine
Record "Warehouse Receipt Line"
The warehouse receipt line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
WithError
Boolean
Specifies whether a runtime error is thrown, if overdelivery is not allowed.
Returns
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
CalcMaxQtyToHandle
procedure CalcMaxQtyToHandle(SourceDocumentLine: Variant): Decimal
Calculates the maximum quantity that can be handled for the given source document line. This quantity includes any overdelivery setups.
Parameters / Return Value
SourceDocumentLine
Variant
The source document line.
Returns
Decimal
The maximum quantity that can be handled for the given line.
CanCloseSalesLine
procedure CanCloseSalesLine(SalesLine: Record "Sales Line"): Boolean
Parameters / Return Value
SalesLine
Record "Sales Line"
Returns
Boolean
CanClosePurchLine
procedure CanClosePurchLine(PurchLine: Record "Purchase Line"): Boolean
Parameters / Return Value
PurchLine
Record "Purchase Line"
Returns
Boolean
CanCloseTransferLine
procedure CanCloseTransferLine(TransferLine: Record "Transfer Line"): Boolean
Parameters / Return Value
TransferLine
Record "Transfer Line"
Returns
Boolean
ShowError
procedure ShowError(SourceTableCaption: Text; SourceTableKeyText: Text)
Throws an overdelivery error for the given source document.
Parameters / Return Value
SourceTableCaption
Text
The caption of the source document table.
SourceTableKeyText
Text
The key text of the source document.
ShowError
procedure ShowError(SourceTableCaption: Text; SourceTableKeyText: Text; MaxQty: Decimal)
Throws an overdelivery error for the given source document.
Parameters / Return Value
SourceTableCaption
Text
The caption of the source document table.
SourceTableKeyText
Text
The key text of the source document.
MaxQty
Decimal
The maximum quantity to be handled. This will be included in the error message.
IsWhseDocLineClosed
procedure IsWhseDocLineClosed(DocVariant: Variant): Boolean
Parameters / Return Value
DocVariant
Variant
Returns
Boolean
AllowOverdelivery
procedure AllowOverdelivery(WhseActLine: Record "Warehouse Activity Line"): Boolean
Parameters / Return Value
WhseActLine
Record "Warehouse Activity Line"
Returns
Boolean
CanDeleteWhseShptLine
procedure CanDeleteWhseShptLine(var WhseShptLine: Record "Warehouse Shipment Line"): Boolean
Parameters / Return Value
WhseShptLine
Record "Warehouse Shipment Line"
Returns
Boolean
CanDeleteWhseRcptLine
procedure CanDeleteWhseRcptLine(var WhseRcptLine: Record "Warehouse Receipt Line"): Boolean
Parameters / Return Value
WhseRcptLine
Record "Warehouse Receipt Line"
Returns
Boolean
Events
OnBeforeFillTempTrackingSpec
local procedure OnBeforeFillTempTrackingSpec(SourceDocLine: Variant; var TempTrackingSpec: Record "Tracking Specification"; var Handled: Boolean)
Raised before a temporary Tracking Specifiction
buffer is filled with the document values from the source document. The values of this buffer are
required for overdelivery calculation.
Parameters / Return Value
SourceDocLine
Variant
The source document line with which the buffer should be filled with.
TempTrackingSpec
Record "Tracking Specification"
The buffer containing all values used for overdelivery calculation.
Handled
Boolean
Set this to
true
to disable default behavior.
OnAfterFillTempTrackingSpec
local procedure OnAfterFillTempTrackingSpec(SourceDocLine: Variant; var TempTrackingSpec: Record "Tracking Specification")
Raised after a temporary Tracking Specifiction
buffer is filled with the document values from the source document. The values of this buffer are
required for overdelivery calculation. Use this to provide custom field values.
Parameters / Return Value
SourceDocLine
Variant
The source document line with which the buffer should be filled with.
TempTrackingSpec
Record "Tracking Specification"
The buffer containing all values used for overdelivery calculation.
OnBeforeShowOverdeliveryWarning
local procedure OnBeforeShowOverdeliveryWarning(SourceDocumentLine: Variant; SetupLine: Record "EOS047 Setup Line"; CurrFieldNo: Integer; var Handled: Boolean)
Raised before a warning confirmation is displayed when a line is about to be overdelivered. Note that this is only triggered if a warning dialog has also been configured on the overdelivery setup.
Parameters / Return Value
SourceDocumentLine
Variant
The source document line that triggered this event.
SetupLine
Record "EOS047 Setup Line"
The overdelivery setup that has been found for the given source document line.
CurrFieldNo
Integer
The CurrFieldNo that was used to trigger this event.
Handled
Boolean
Gets or sets if this event has been completely handled. If you set this to true, the default warning dialog will not appear.
OnBeforeCanCloseSalesLine
local procedure OnBeforeCanCloseSalesLine(SalesLine: Record "Sales Line"; var CanClose: Boolean; var Handled: Boolean)
Raised before the system checks if a given document line can be closed with underdelivery.
Parameters / Return Value
SalesLine
Record "Sales Line"
The source document line.
CanClose
Boolean
Gets or sets if the line can be closed with underdelivery. The value of this has not yet been set.
Handled
Boolean
Gets or sets if this event has been completely handled.
OnAfterCanCloseSalesLine
local procedure OnAfterCanCloseSalesLine(SalesLine: Record "Sales Line"; SetupLine: Record "EOS047 Setup Line"; var CanClose: Boolean)
Raised after the system has checked if a given document line can be closed with underdelivery.
Parameters / Return Value
SalesLine
Record "Sales Line"
The source document line.
SetupLine
Record "EOS047 Setup Line"
The setup line that was found for the source document line.
CanClose
Boolean
Gets or sets if the line can be closed with underdelivery. This value is set to the value determined by setup.
OnBeforeCanClosePurchLine
local procedure OnBeforeCanClosePurchLine(PurchLine: Record "Purchase Line"; var CanClose: Boolean; var Handled: Boolean)
Raised before the system checks if a given document line can be closed with underdelivery.
Parameters / Return Value
PurchLine
Record "Purchase Line"
The source document line.
CanClose
Boolean
Gets or sets if the line can be closed with underdelivery. The value of this has not yet been set.
Handled
Boolean
Gets or sets if this event has been completely handled.
OnAfterCanClosePurchLine
local procedure OnAfterCanClosePurchLine(PurchLine: Record "Purchase Line"; SetupLine: Record "EOS047 Setup Line"; var CanClose: Boolean)
Raised after the system has checked if a given document line can be closed with underdelivery.
Parameters / Return Value
PurchLine
Record "Purchase Line"
The source document line.
SetupLine
Record "EOS047 Setup Line"
The setup line that was found for the source document line.
CanClose
Boolean
Gets or sets if the line can be closed with underdelivery. This value is set to the value determined by setup.
OnBeforeCanCloseTransferLine
local procedure OnBeforeCanCloseTransferLine(TransferLine: Record "Transfer Line"; var CanClose: Boolean; var Handled: Boolean)
Raised before the system checks if a given document line can be closed with underdelivery.
Parameters / Return Value
TransferLine
Record "Transfer Line"
The source document line.
CanClose
Boolean
Gets or sets if the line can be closed with underdelivery. The value of this has not yet been set.
Handled
Boolean
Gets or sets if this event has been completely handled.
OnAfterCanCloseTransferLine
local procedure OnAfterCanCloseTransferLine(TransferLine: Record "Transfer Line"; SetupLine: Record "EOS047 Setup Line"; var CanClose: Boolean)
Raised after the system has checked if a given document line can be closed with underdelivery.
Parameters / Return Value
TransferLine
Record "Transfer Line"
The source document line.
SetupLine
Record "EOS047 Setup Line"
The setup line that was found for the source document line.
CanClose
Boolean
Gets or sets if the line can be closed with underdelivery. This value is set to the value determined by setup.
OnBeforeCalcMaxQtyToHandle
local procedure OnBeforeCalcMaxQtyToHandle(SourceDocLine: Variant; SetupLine: Record "EOS047 Setup Line"; QtyToHandleBase: Decimal; var MaxQtyToHandleBase: Decimal; var Handled: Boolean)
Raised before the maximum quantity that can be handled is calculated for a given source document line.
Parameters / Return Value
SourceDocLine
Variant
The source document line.
SetupLine
Record "EOS047 Setup Line"
The setup line that has been found.
QtyToHandleBase
Decimal
The requested quantity to be handled (base).
MaxQtyToHandleBase
Decimal
The maximum quantity that can be handled (base) for this line.
Handled
Boolean
Gets or sets if this event has been completely handled.
OnAfterCalcMaxQtyToHandle
local procedure OnAfterCalcMaxQtyToHandle(SourceDocLine: Variant; SetupLine: Record "EOS047 Setup Line"; QtyToHandleBase: Decimal; var MaxQtyToHandleBase: Decimal)
Raised after the maximum quantity that can be handled is calculated for a given source document line.
Parameters / Return Value
SourceDocLine
Variant
The source document line.
SetupLine
Record "EOS047 Setup Line"
The setup line that has been found.
QtyToHandleBase
Decimal
The requested quantity to be handled (base).
MaxQtyToHandleBase
Decimal
The maximum quantity that can be handled (base) for this line.
OnBeforeCheckSalesLineOverdelivery
local procedure OnBeforeCheckSalesLineOverdelivery(SalesLine: Record "Sales Line"; CurrFieldNo: Integer; var ReturnValue: Integer; IsOverDelivery: Boolean; var IsHandled: Boolean)
Raised in the procedure CheckSalesLineOverdelivery, before check if a given Sales Line is allowed for overdelivery.
Parameters / Return Value
SalesLine
Record "Sales Line"
The Sales Line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
ReturnValue
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
IsOverDelivery
Boolean
Specifies if the sales line is allowed for overdelivery
IsHandled
Boolean
if true, the procedure returns the parameter “ReturnValue”
OnBeforeCheckWhseShptLineOverdelivery
local procedure OnBeforeCheckWhseShptLineOverdelivery(WhseShptLine: Record "Warehouse Shipment Line"; CurrFieldNo: Integer; var ReturnValue: Integer; IsOverDelivery: Boolean; var IsHandled: Boolean)
Raised in the procedure CheckWhseShptLineOverdelivery, before check if a given Warehouse Shipment Line is allowed for overdelivery.
Parameters / Return Value
WhseShptLine
Record "Warehouse Shipment Line"
The Warehouse Shipment Line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
ReturnValue
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
IsOverDelivery
Boolean
Specifies if the Warehouse Shipment Line is allowed for overdelivery
IsHandled
Boolean
if true, the procedure returns the parameter “ReturnValue”
OnBeforeCheckPurchLineOverdelivery
local procedure OnBeforeCheckPurchLineOverdelivery(PurchLine: Record "Purchase Line"; CurrFieldNo: Integer; var ReturnValue: Integer; IsOverDelivery: Boolean; var IsHandled: Boolean)
Raised in the procedure CheckPurchLineOverdelivery, before check if a given Purchase Line is allowed for overdelivery.
Parameters / Return Value
PurchLine
Record "Purchase Line"
The Purchase Line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
ReturnValue
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
IsOverDelivery
Boolean
Specifies if the Purchase Line is allowed for overdelivery
IsHandled
Boolean
if true, the procedure returns the parameter “ReturnValue”
OnBeforeCheckWhseRcptLineOverdelivery
local procedure OnBeforeCheckWhseRcptLineOverdelivery(WhseRcptLine: Record "Warehouse Receipt Line"; CurrFieldNo: Integer; var ReturnValue: Integer; IsOverDelivery: Boolean; var IsHandled: Boolean)
Raised in the procedure CheckWhseRcptLineOverdelivery, before check if a given Warehouse Receipt Line is allowed for overdelivery.
Parameters / Return Value
WhseRcptLine
Record "Warehouse Receipt Line"
The Warehouse Receipt Line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
ReturnValue
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
IsOverDelivery
Boolean
Specifies if the Warehouse Receipt Line is allowed for overdelivery
IsHandled
Boolean
if true, the procedure returns the parameter “ReturnValue”
OnBeforeCheckTransferLineOverdelivery
local procedure OnBeforeCheckTransferLineOverdelivery(TransferLine: Record "Transfer Line"; CurrFieldNo: Integer; var ReturnValue: Integer; IsOverDelivery: Boolean; var IsHandled: Boolean)
Raised in the procedure CheckTransferLineOverdelivery, before check if a given Transfer Line is allowed for overdelivery.
Parameters / Return Value
TransferLine
Record "Transfer Line"
The Transfer Line to check.
CurrFieldNo
Integer
The CurrFieldNo from which the check was triggered.
ReturnValue
Integer
An integer value indicating the overdelivery check result:
-1: Overdelivery for this line is either not configured or not applicable. This indicates that no check has been performed and that the original source document must decide.
0: Overdelivery is either not triggered (quantity has not been exceeded) or is configured and allowed.
1: Overdelivery has been triggered but is not allowed.
IsOverDelivery
Boolean
Specifies if the Transfer Line is allowed for overdelivery
IsHandled
Boolean
if true, the procedure returns the parameter “ReturnValue”
OnBeforeVerifyWhseLinesExist
procedure OnBeforeVerifyWhseLinesExist(SourceType: Integer; NewRecRef: RecordRef; OldRecRef: RecordRef; var IsHandled: Boolean)
Raised at the beginning of the procedure “EOS_VerifyWhseLinesExist”, called in the OnValidate trigger of field “EOS Line Closed” of Doc. lines. Allows you to skip the control on Warehouse Lines.
Parameters / Return Value
SourceType
Integer
Source Table ID
NewRecRef
RecordRef
Rec of Source Table
OldRecRef
RecordRef
xRec of Source Table
IsHandled
Boolean
if true, no following app code will be executed
OnBeforePurchPost_NotCanClosePurchLine
procedure OnBeforePurchPost_NotCanClosePurchLine(var TempPurchaseLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; CommitIsSuppressed: Boolean;WhseReceive: Boolean; WhseShip: Boolean)
Raised in the EventSubscriber “OnBeforePostUpdateOrderLineModifyTempLine” if Purchase Line can’t be close.
Parameters / Return Value
TempPurchaseLine
Record "Purchase Line"
Record “Purchase Line”
PurchHeader
Record "Purchase Header"
Record “Purchase Header”
CommitIsSuppressed
Boolean
Boolean
WhseReceive
Boolean
Boolean
WhseShip
Boolean
Boolean
OnBeforeAdjustOutstandingQty
procedure OnBeforeAdjustOutstandingQty(Quantity: Decimal; QuantityBase: Decimal; QtyToShipReceive: Decimal; var QtyOutstanding: Decimal; var QtyOutstandingBase: Decimal; QtyShippedReceived: Decimal; QtyShippedReceivedBase: Decimal; QtyPerUoM: Decimal; var IsHandled: Boolean)
Raised in the procedure AdjustOutstandingQty, before calculating the Outstanding Quantity, after modify Quantity to ship/receive on whse line. Use it to modify the Outstanding Quantity.
Parameters / Return Value
Quantity
Decimal
Quantity on document line
QuantityBase
Decimal
Quantity Base on document lin
QtyToShipReceive
Decimal
Quantity to ship or receive on document line
QtyOutstanding
Decimal
Outstanding Quantity to modify
QtyOutstandingBase
Decimal
Outstanding Quantity Base to modify
QtyShippedReceived
Decimal
Quantity shipped or received on document line
QtyShippedReceivedBase
Decimal
Quantity Base shipped or received on document line
QtyPerUoM
Decimal
Quantity per Unit of Measure on document line
IsHandled
Boolean
if true, no following app code will be executed
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.