Codeunit 18123044 EOS EDoc. Utilities
Gather all utility functions used in electr. document management
procedure FormatAmountOutbound(inValue: Decimal): Text
Format Amount with this format <Precision,2:2><Standard Format,9>
inValue Decimal
Decimal
Returns Text
Text
procedure FormatDateOutbound(inValue: Date): Text
Format Date with this format <Standard Format,9>
inValue Date
Date
Returns Text
Text
procedure DownloadBLOB(TempBlob: Codeunit "Temp Blob"; FolderName: Text; FileName: Text; FileFilter: Text) Result: Boolean
Download BLOB
TempBlob Codeunit "Temp Blob"
Blob with file to download
FolderName Text
The folder Name
FileName Text
the File Name
FileFilter Text
File Filter
Returns Boolean
true equals success
procedure IsForeignCustomer(CustomerNo: code[20]): Boolean
CustomerNo code[20]
Returns Boolean
procedure IsValidForeignRecipient(RecipientCode: code[10]) IsValidRecipient: Boolean
RecipientCode code[10]
Returns Boolean
procedure CheckIsBasicLatinSuppl(TAGNAme: Text; TAGValue: Text): Text
TAGNAme Text
TAGValue Text
Returns Text
procedure CheckIsBasicLatin(TAGNAme: Text; TAGValue: Text): Text
TAGNAme Text
TAGValue Text
Returns Text
procedure FormatSpecialString(CurrFieldNo: Integer; MaxLen: Integer; DeleteSpecialChr: Boolean; inString: Text) RetString: Text
CurrFieldNo Integer
MaxLen Integer
DeleteSpecialChr Boolean
inString Text
Returns Text
procedure RemoveCountryFromVatRegNo(Value: Text; CountryCode: Code[10]): Text
Value Text
CountryCode Code[10]
Returns Text
procedure SetCountryOnVatRegNo(Value: Text; CountryCode: Code[10]): Text
Value Text
CountryCode Code[10]
Returns Text
procedure GetTAGMaxLenght(TAGName: Text; TAGValue: Text): Integer
TAGName Text
TAGValue Text
Returns Integer
procedure GetISOCountryCode(CountryCode: Code[10]; RaiseError: Boolean): code[10]
CountryCode Code[10]
RaiseError Boolean
Returns code[10]
procedure GetCodiceDestinatario(RecRef: RecordRef; RaiseError: Boolean) Result: code[7]
RecRef RecordRef
RaiseError Boolean
Returns code[7]
procedure CheckDocStatus(VAR RecRef: RecordRef; Type: Option Create,Send,"Create+Send"; HideDialog: Boolean) Result: Boolean
RecRef RecordRef
Type Option
Create
(0) , Send
(1) , "Create+Send"
(2)
HideDialog Boolean
Returns Boolean
procedure CheckStatusSingle(RecRef: RecordRef; Type: Option Create,Send,"Create+Send") Result: Boolean
RecRef RecordRef
Type Option
Create
(0) , Send
(1) , "Create+Send"
(2)
Returns Boolean
procedure GeIXFEProgressiveNo(SourceEntryNo: Integer) RetValue: Text[50]
SourceEntryNo Integer
Returns Text[50]
procedure GetDocPECEmailAddress(RecRef: RecordRef) PECEmailAdd: Text
RecRef RecordRef
Returns Text
procedure CheckCustElectrInvoiceData(Customer: Record Customer; inFieldNo: Integer; HideDialog: Boolean) Return: Boolean
Customer Record "Customer"
inFieldNo Integer
HideDialog Boolean
Returns Boolean
procedure ConvertAmount2LCY(Value: Decimal; CurrencyCode: Code[10]; CurrencyFactor: Decimal; CurrencyDate: Date; ForceConvertion: Boolean; EOSOutbElectrDocSetup: Record "EOS Outb. Electr. Doc. Setup") RetValue: Decimal
Value Decimal
CurrencyCode Code[10]
CurrencyFactor Decimal
CurrencyDate Date
ForceConvertion Boolean
EOSOutbElectrDocSetup Record "EOS Outb. Electr. Doc. Setup"
Returns Decimal
procedure GetTipoDocumento(RecRef: RecordRef) Result: Code[5]
RecRef RecordRef
Returns Code[5]
procedure GetDateFromText(DateStr: Text[10]) RetDate: Date
DateStr Text[10]
Returns Date
procedure GetTextFromDate(inDate: Date) RetDate: Text[10]
inDate Date
Returns Text[10]
procedure GetDecimalFromText(DecStr: Text[21]) RetDecimal: Decimal
DecStr Text[21]
Returns Decimal
procedure RemoveFileSpecialChars(VAR inText: Text[1000])
Text[1000]
procedure SplitText(inStr: Text; MaxLen: Integer; var outStr: array[100] of Text[250]): Integer
inStr Text
MaxLen Integer
outStr Text[250]
Returns Integer
procedure TransferDimFromStandardText(var PurchaseLine: Record "Purchase Line"; ElectronicDocPreviewLine: Record "EOS Inb. EDoc. Preview Line")
PurchaseLine Record "Purchase Line"
ElectronicDocPreviewLine Record "EOS Inb. EDoc. Preview Line"
procedure InsertInvLineFromRcptLine(var PurchRcptLine: Record "Purch. Rcpt. Line"; var PurchLine: Record "Purchase Line")
PurchRcptLine Record "Purch. Rcpt. Line"
PurchLine Record "Purchase Line"
procedure InsertInvLineFromRetShptLine(var ReturnShipmentLine: Record "Return Shipment Line"; var PurchLine: Record "Purchase Line")
ReturnShipmentLine Record "Return Shipment Line"
PurchLine Record "Purchase Line"
procedure UploadXMLFile(var is: InStream): Text[250]
is InStream
Returns Text[250]
procedure UploadXMLZip(var is: InStream)
InStream
procedure unzip(ZipIs: InStream; var NameValueBufferOut: Record "Name/Value Buffer")
ZipIs InStream
NameValueBufferOut Record "Name/Value Buffer"
procedure RemoveXSLTag(is: InStream; var tempBlob: Codeunit "Temp Blob")
is InStream
tempBlob Codeunit "Temp Blob"
procedure ConvertP7MStream(var is: InStream; var filename: Text[250]; SkipValidation: Boolean; var xml: Codeunit "Temp Blob")
is InStream
filename Text[250]
SkipValidation Boolean
xml Codeunit "Temp Blob"
procedure GotoPage(Notif: Notification)
Notification
procedure NotificationHandler(PageNoToOpen: Integer; Scope: NotificationScope; MessageText: Text; ActionText: Text; HasAction: Boolean)
PageNoToOpen Integer
Scope NotificationScope
MessageText Text
ActionText Text
HasAction Boolean
procedure InitXMLTemplates()
procedure RemoveCountry(Value: Text; CountryCode: Code[10]): Text
Remove Country code from text
Value Text
Text
CountryCode Code[10]
Code[10]
Returns Text
Text
procedure IsItaly(CountryCode: Code[10]): Boolean
Is Country code = Italy
CountryCode Code[10]
Code[10]
Returns Boolean
Boolean
procedure IsRenegotiated(CustLedgerEntry: Record "Cust. Ledger Entry"): Boolean
CustLedgerEntry Record "Cust. Ledger Entry"
Returns Boolean
local procedure OnBeforeIsValidRecipient(var RecipientCode: code[10]; var IsValidRecipient: Boolean; var IsHandled: Boolean)
RecipientCode code[10]
IsValidRecipient Boolean
IsHandled Boolean
local procedure OnAfterIsValidRecipient(var RecipientCode: code[10]; var IsValidRecipient: Boolean)
RecipientCode code[10]
IsValidRecipient Boolean
local procedure OnBeforeAskOverrideStatusCheck(Type: Option Create,Send,"Create+Send"; var MsgTxt: Text; var Result: Boolean; var HideDialog: Boolean; var DialogSeverity: option Message,Confirm,Error)
Raised when some selected document is in a status that need a user confirm to proceed with create/send
Type Option
Create
(0) , Send
(1) , "Create+Send"
(2)
Specifies the request type ( Create,Send,“Create+Send”)
MsgTxt Text
Preconfigured message that will be submitted to the user to confirm create/send. You can modify this text to customize UI
Result Boolean
Return value, TRUE means proceed with docuent create/send, FALSE means no document will be created or sent
HideDialog Boolean
TRUE means no confimation message will be used, FALSE (default) means asj to the user to proceed or not
DialogSeverity option
Message
(0) , Confirm
(1) , Error
(2)
Values: Message,Confirm,Error. Specifies in case of return message what kind of dialog must be exposed
local procedure OnBeforeCheckStatusOutboudDoc(RecRef: RecordRef; Type: Option Create,Send,"Create+Send"; var Result: Boolean; var IsHandled: Boolean)
Raised before single document status is checked versus the requested action type
RecRef RecordRef
The header of the sales or service document
Type Option
Create
(0) , Send
(1) , "Create+Send"
(2)
Specifies the request type ( Create,Send,“Create+Send”)
Result Boolean
Return value, TRUE means proceed, FALSE means operation to be approved by user
IsHandled Boolean
No following standard code will be executed
local procedure OnAfterCheckStatusOutboudDoc(RecRef: RecordRef; Type: Option Create,Send,"Create+Send"; var Result: Boolean)
Raised before single document status is checked versus the requested action type
RecRef RecordRef
The header of the sales or service document
Type Option
Create
(0) , Send
(1) , "Create+Send"
(2)
Specifies the request type ( Create,Send,“Create+Send”)
Result Boolean
Return value, TRUE means proceed, FALSE means operation to be approved by user
local procedure OnBeforeCheckCustElectrInvoiceData(Customer: Record Customer; inFieldNo: Integer; var HideDialog: Boolean; var Return: Boolean; var isHandled: Boolean)
Customer Record "Customer"
inFieldNo Integer
HideDialog Boolean
Return Boolean
isHandled Boolean
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.