Codeunit 70491916 EOS029 Calculate Containers
Codeunit 70491916 EOS029 Calculate Containers
Methods
CalculateYesNo
procedure CalculateYesNo(SourceDoc: Variant): Boolean
Recalculate all empties for a given source document. This method will provide a confirmation dialog that the user can confirm or cancel.
Parameters / Return Value
SourceDoc
Variant
The source document to calculate.
Returns
Boolean
true
if the dialog was confirmed and the empties were calculated,false
otherwise.
Calculate
procedure Calculate(SourceDoc: Variant): Boolean
Recalculate all empties for a given source document.
Parameters / Return Value
SourceDoc
Variant
The source document to calculate.
Returns
Boolean
true
if the empties were calculated,false
otherwise.
DeleteContainersYesNo
procedure DeleteContainersYesNo(SourceDoc: Variant): Boolean
Parameters / Return Value
SourceDoc
Variant
Returns
Boolean
UpdateSourceDocument
procedure UpdateSourceDocument(SourceDoc: Variant): Boolean
Updates the source document updating all empty item lines and quantities. The empty items are not changed or updated, only the source document is synchronized.
Parameters / Return Value
SourceDoc
Variant
The source document to update.
Returns
Boolean
true
if the source document has been updated.false
if the source document is not supported.
UpdateSourceDocument
procedure UpdateSourceDocument(SourceDoc: Variant; var TempDocEmptyItem: Record "EOS029 Document Container"): Boolean
Updates the source document updating all empty item lines and quantities.
The empty items are replaced with the contents provided by TempDocEmptyItem
.
Parameters / Return Value
SourceDoc
Variant
The source document to update.
TempDocEmptyItem
Record "EOS029 Document Container"
The new empty items to apply to the source document.
Returns
Boolean
true
if the source document has been updated.false
if the source document is not supported.
UpdateSourceDocument
procedure UpdateSourceDocument(SourceDoc: Variant; var TempDocEmptyItem: Record "EOS029 Document Container"; KeepExistingEntries: Boolean): Boolean
Parameters / Return Value
SourceDoc
Variant
TempDocEmptyItem
Record "EOS029 Document Container"
KeepExistingEntries
Boolean
Returns
Boolean
CollectDocContainers
procedure CollectDocContainers(SourceDoc: Variant; var TempDocContainer: Record "EOS029 Document Container"; Detailed: Boolean)
Parameters / Return Value
SourceDoc
Variant
TempDocContainer
Record "EOS029 Document Container"
Detailed
Boolean
UpdateSourceDocument
procedure UpdateSourceDocument(SourceDoc: Variant; var TempDocEmptyItem: Record "EOS029 Document Container"; KeepExistingEntries: Boolean; SkipUpdate: Boolean): Boolean
Parameters / Return Value
SourceDoc
Variant
TempDocEmptyItem
Record "EOS029 Document Container"
KeepExistingEntries
Boolean
SkipUpdate
Boolean
Returns
Boolean
DeleteContainers
procedure DeleteContainers(SourceDoc: Variant)
Parameters / Return Value
- SourceDoc
Variant
SumEmptiesForAccount
procedure SumEmptiesForAccount(var Customer: Record Customer; LocationCode: Code[10]; var TempEmptiesEntry: Record "EOS029 Container Entry")
Parameters / Return Value
Customer
Record "Customer"
LocationCode
Code[10]
TempEmptiesEntry
Record "EOS029 Container Entry"
SumEmptiesForAccount
procedure SumEmptiesForAccount(var Vendor: Record Vendor; LocationCode: Code[10]; var TempEmptiesEntry: Record "EOS029 Container Entry")
Parameters / Return Value
Vendor
Record "Vendor"
LocationCode
Code[10]
TempEmptiesEntry
Record "EOS029 Container Entry"
DeleteContainerLinks
procedure DeleteContainerLinks(ContainerLine: Variant): Integer
Parameters / Return Value
ContainerLine
Variant
Returns
Integer
DeleteContainerLinks
procedure DeleteContainerLinks(ContainerLine: Variant; OriginalLine: Boolean): Integer
Parameters / Return Value
ContainerLine
Variant
OriginalLine
Boolean
Returns
Integer
Events
OnBeforeCreateEmpties
local procedure OnBeforeCreateEmpties(SourceDocument: Variant; var TempDocEmptyItem: Record "EOS029 Document Container"; var Handled: Boolean)
Parameters / Return Value
SourceDocument
Variant
TempDocEmptyItem
Record "EOS029 Document Container"
Handled
Boolean
OnBeforeDeleteEmpties
local procedure OnBeforeDeleteEmpties(SourceDocument: Variant; var Handled: Boolean)
Parameters / Return Value
SourceDocument
Variant
Handled
Boolean
OnAfterCreateEmpties
local procedure OnAfterCreateEmpties(SourceDocument: Variant; var TempDocEmptyItem: Record "EOS029 Document Container")
Parameters / Return Value
SourceDocument
Variant
TempDocEmptyItem
Record "EOS029 Document Container"
OnAfterDeleteEmpties
local procedure OnAfterDeleteEmpties(SourceDocument: Variant; var TempDocContainerItem: Record "EOS029 Document Container")
Raised after document containers have been deleted from a source document
Parameters / Return Value
SourceDocument
Variant
The source document.
TempDocContainerItem
Record "EOS029 Document Container"
A temporary set of container items that have been deleted.
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.