Codeunit 18122020 EOS AdvRpt Routines
Codeunit 18122020 EOS AdvRpt Routines
Methods
TryTransferHeaderFields
procedure TryTransferHeaderFields(Source: Variant; var RBHeader: Record "EOS Report Buffer Header")
Parameters / Return Value
Source
Variant
RBHeader
Record "EOS Report Buffer Header"
TryTransferLineFields
procedure TryTransferLineFields(Source: Variant; var RBLine: Record "EOS Report Buffer Line")
Parameters / Return Value
Source
Variant
RBLine
Record "EOS Report Buffer Line"
TryTransferFields
procedure TryTransferFields(Source: Variant; var TargetRecRef: RecordRef)
Parameters / Return Value
Source
Variant
TargetRecRef
RecordRef
GetFieldRefDecimalValueSafe
procedure GetFieldRefDecimalValueSafe(RecRef: RecordRef; FieldNo: Integer): Decimal
Parameters / Return Value
RecRef
RecordRef
FieldNo
Integer
Returns
Decimal
CollapsSecurityFiltersToView
procedure CollapsSecurityFiltersToView(SourceDocument: Variant): Text
Parameters / Return Value
SourceDocument
Variant
Returns
Text
GetDocumentToPrint
procedure GetDocumentToPrint(DataitemRecord: Variant; var DocVariant: Variant): Boolean
Parameters / Return Value
DataitemRecord
Variant
DocVariant
Variant
Returns
Boolean
GetDocumentToPrint
procedure GetDocumentToPrint(DataitemRecord: Variant; var DocVariant: Variant; var AlreadyProcessed: Boolean)
This function is only an helper/workaround to default GetDocumentToPrint.
Parameters / Return Value
DataitemRecord
Variant
Dataitem Table to check
DocVariant
Variant
if DataitemRecord has filters DocVariant will contain one single record and AlreadyProcessed is set to true
AlreadyProcessed
Boolean
if this parameter is already true this function will skip any checks
GetNewLine
procedure GetNewLine() Result: Text[2]
Parameters / Return Value
- Returns
Text[2]
GetItemTrackingLines
procedure GetItemTrackingLines(var TmpItemLedgEntry2: Record "Item Ledger Entry"; RefRBHeader: Record "EOS Report Buffer Header"; RefRBLine: Record "EOS Report Buffer Line")
Parameters / Return Value
TmpItemLedgEntry2
Record "Item Ledger Entry"
RefRBHeader
Record "EOS Report Buffer Header"
RefRBLine
Record "EOS Report Buffer Line"
CollectItemTrackingLines
procedure CollectItemTrackingLines(var ItemTrackingSpec: Record "Tracking Specification"; DocVariant: Variant; FromReservEntries: Boolean; FromTrackingSpec: Boolean)
Parameters / Return Value
ItemTrackingSpec
Record "Tracking Specification"
DocVariant
Variant
FromReservEntries
Boolean
FromTrackingSpec
Boolean
CollectItemTrackingLines
procedure CollectItemTrackingLines(var ItemTrackingSpec: Record "Tracking Specification" temporary; SourceType: Integer; SourceSubtype: Integer; SourceID: Code[20]; SourceBatchName: Code[20]; SourceProdOrderLine: Integer; SourceRefNo: Integer; FromReservEntries: Boolean; FromTrackingSpec: Boolean)
Parameters / Return Value
ItemTrackingSpec
Record "Tracking Specification"
SourceType
Integer
SourceSubtype
Integer
SourceID
Code[20]
SourceBatchName
Code[20]
SourceProdOrderLine
Integer
SourceRefNo
Integer
FromReservEntries
Boolean
FromTrackingSpec
Boolean
CustomFieldsToBlob
procedure CustomFieldsToBlob(var TempAdvRptCustomFields: Record "EOS AdvRpt Custom Fields"; var TempBlob: Codeunit "Temp Blob")
Parameters / Return Value
TempAdvRptCustomFields
Record "EOS AdvRpt Custom Fields"
TempBlob
Codeunit "Temp Blob"
Blob2CustomFields
procedure Blob2CustomFields(var TempBlob: Codeunit "Temp Blob"; var TempAdvRptCustomFields: Record "EOS AdvRpt Custom Fields")
Parameters / Return Value
TempBlob
Codeunit "Temp Blob"
TempAdvRptCustomFields
Record "EOS AdvRpt Custom Fields"
GetBlobSize
procedure GetBlobSize(var TempBlob: Codeunit "Temp Blob"): BigInteger
Parameters / Return Value
TempBlob
Codeunit "Temp Blob"
Returns
BigInteger
TextValue2Blob
procedure TextValue2Blob(value: Text; var tempblob: Codeunit "Temp Blob")
Parameters / Return Value
value
Text
tempblob
Codeunit "Temp Blob"
BlobValue2Text
procedure BlobValue2Text(var tempblob: Codeunit "Temp Blob"): Text
Parameters / Return Value
tempblob
Codeunit "Temp Blob"
Returns
Text
BlobValue2Text_UTF8
procedure BlobValue2Text_UTF8(var tempblob: Codeunit "Temp Blob"): Text
Parameters / Return Value
tempblob
Codeunit "Temp Blob"
Returns
Text
GetAddressString
procedure GetAddressString(var AddrArray: array[11] of Text): Text
Parameters / Return Value
AddrArray
Text
Returns
Text
FormatDateAsRDLC
procedure FormatDateAsRDLC(DateValue: Date) Result: Text[30]
Parameters / Return Value
DateValue
Date
Returns
Text[30]
FilterCommentLineByTable
procedure FilterCommentLineByTable(TableNo: Integer; DocumentType: Integer; var SalesCommentLine: Record "Sales Comment Line")
Parameters / Return Value
TableNo
Integer
DocumentType
Integer
SalesCommentLine
Record "Sales Comment Line"
FilterCommentLineByTable
procedure FilterCommentLineByTable(TableNo: Integer; DocumentType: Integer; var PurchCommentLine: Record "Purch. Comment Line")
Parameters / Return Value
TableNo
Integer
DocumentType
Integer
PurchCommentLine
Record "Purch. Comment Line"
FilterCommentLineByTable
procedure FilterCommentLineByTable(TableNo: Integer; DocumentType: Integer; var ServiceCommentLine: Record "Service Comment Line")
Parameters / Return Value
TableNo
Integer
DocumentType
Integer
ServiceCommentLine
Record "Service Comment Line"
FilterCommentLineByTable
procedure FilterCommentLineByTable(TableNo: Integer; DocumentType: Integer; var InventoryCommentLine: Record "Inventory Comment Line")
Parameters / Return Value
TableNo
Integer
DocumentType
Integer
InventoryCommentLine
Record "Inventory Comment Line"
FilterCommentLineByTable
procedure FilterCommentLineByTable(TableNo: Integer; DocumentType: Integer; var WarehouseCommentLine: Record "Warehouse Comment Line")
Parameters / Return Value
TableNo
Integer
DocumentType
Integer
WarehouseCommentLine
Record "Warehouse Comment Line"
Events
OnBeforeInsertItemTrackingLine
local procedure OnBeforeInsertItemTrackingLine(var ItemLedgEntry: Record "Item Ledger Entry";RbHeader: Record "EOS Report Buffer Header";RbLine: Record "EOS Report Buffer Line";var CanInsert: Enum "EOS066 TriState Boolean")
Raised to check if a given (temporary) item ledger entry is valid to be printed as an item tracking line.
This will be pre-set to false, if the item entry does not have any tracking information on it.
The entry will be printed if CanInsert
has any value other than false
. Set this to false
explicitly to skip it.
Parameters / Return Value
ItemLedgEntry
Record "Item Ledger Entry"
The temporary item ledger entry about to be inserted to the buffer that will be printed.
RbHeader
Record "EOS Report Buffer Header"
The report buffer header that is being printed.
RbLine
Record "EOS Report Buffer Line"
The report buffer line that is being printed.
CanInsert
Enum "EOS066 TriState Boolean"
Get or set if the entry should be inserted to the buffer that is being printed. If this is
false
, the entry will be skipped. If this isUndefined
orTrue
, the entry is included.
OnBeforeGetItemTrackingLines
local procedure OnBeforeGetItemTrackingLines(var TempItemLedgEntry: Record "Item Ledger Entry";RbHeader: Record "EOS Report Buffer Header";RbLine: Record "EOS Report Buffer Line";var Handled: Boolean)
Raised before item tracking entries for a given report buffer header and report buffer line are retrieved. Use this to customize or skip buffer extraction.
Parameters / Return Value
TempItemLedgEntry
Record "Item Ledger Entry"
The temporary item ledger entry that will contain the item entries to be printed as item tracking lines.
RbHeader
Record "EOS Report Buffer Header"
The report buffer header that is being printed.
RbLine
Record "EOS Report Buffer Line"
The report buffer line that is being printed.
Handled
Boolean
Gets or sets if this event has been completely handled.
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.