Codeunit 18008310 EOS010 Salesp. Import Mgmt.
Codeunit 18008310 EOS010 Salesp. Import Mgmt.
Methods
CheckImport
procedure CheckImport()
CheckImport
procedure CheckImport(var SalespersonImport: Record "EOS010 Salesperson Import")
Parameters / Return Value
- SalespersonImport
Record "EOS010 Salesperson Import"
ApplyImport
procedure ApplyImport()
UpdateSourceRecord
procedure UpdateSourceRecord(var CurrentSalesP: Record "EOS010 Salesperson Import"; var CurrentSalesPDict: Dictionary of [Code[10], Code[20]])
Parameters / Return Value
CurrentSalesP
Record "EOS010 Salesperson Import"
CurrentSalesPDict
Dictionary[Code,Code]
CreateDummyDocuments
procedure CreateDummyDocuments()
ConvertIntegerListToFilter
procedure ConvertIntegerListToFilter(IntegerList: List of [Integer]; var Filters: List of [Text])
Converts a list of integers into a Business Central compatible filter string. Creates range expressions (e.g., “1..5”) for consecutive numbers and individual values for isolated numbers. Assumes the input list is already sorted from lowest to highest value.
Parameters / Return Value
IntegerList
List[Integer]
Sorted list of integers to convert to filter string
Filters
List[Text]
Events
OnUnknowTableUpdate
local procedure OnUnknowTableUpdate(CurrentSalesP: Record "EOS010 Salesperson Import"; var SalesPersonDict: Dictionary of [Code[10], Code[20]]; var IsHandled: Boolean)
Raised for unknown (custom) tables while converting old “EOS Add. Salesperson/Purchaser” record table You must handle all unknow tables references to proceed with the upgrade.
Parameters / Return Value
CurrentSalesP
Record "EOS010 Salesperson Import"
SalesPersonDict
Dictionary[Code,Code]
Dictionary of Role/Salespersons
IsHandled
Boolean
OnBeforeUpdateCustomer
local procedure OnBeforeUpdateCustomer(var Customer: Record Customer; var SalesPersonDict: Dictionary of [Code[10], Code[20]]; var IsHandled: Boolean)
Raised before “Get” method. Use this event for “AddLoadFields()” if you encounter “jit” problems.
Parameters / Return Value
Customer
Record "Customer"
SalesPersonDict
Dictionary[Code,Code]
Dictionary of Role/Salespersons
IsHandled
Boolean
Return true if you take full responsibility for updating the ‘EOS Salesperson Set ID’ with the value of SalespersonSetID
OnBeforeUpdateShipToAddress
local procedure OnBeforeUpdateShipToAddress(var ShipToAddress: Record "Ship-to Address"; var SalesPersonDict: Dictionary of [Code[10], Code[20]]; var IsHandled: Boolean)
Raised before “Get” method. Use this event for “AddLoadFields()” if you encounter “jit” problems.
Parameters / Return Value
ShipToAddress
Record "Ship-to Address"
SalesPersonDict
Dictionary[Code,Code]
Dictionary of Role/Salespersons
IsHandled
Boolean
Return true if you take full responsibility for updating the ‘EOS Salesperson Set ID’ with the value of SalespersonSetID
OnBeforeUpdateSalesHeader
local procedure OnBeforeUpdateSalesHeader(var SalesHeader: Record "Sales Header"; var SalesPersonDict: Dictionary of [Code[10], Code[20]]; var IsHandled: Boolean)
Raised before “Get” method. Use this event for “AddLoadFields()” if you encounter “jit” problems.
Parameters / Return Value
SalesHeader
Record "Sales Header"
SalesPersonDict
Dictionary[Code,Code]
Dictionary of Role/Salespersons
IsHandled
Boolean
Return true if you take full responsibility for updating the ‘EOS Salesperson Set ID’ with the value of SalespersonSetID
OnBeforeUpdateSalesLine
local procedure OnBeforeUpdateSalesLine(var SalesLine: Record "Sales Line"; var SalesPersonDict: Dictionary of [Code[10], Code[20]]; var IsHandled: Boolean)
Raised before “Get” method. Use this event for “AddLoadFields()” if you encounter “jit” problems.
Parameters / Return Value
SalesLine
Record "Sales Line"
SalesPersonDict
Dictionary[Code,Code]
Dictionary of Role/Salespersons
IsHandled
Boolean
Return true if you take full responsibility for updating the ‘EOS Salesperson Set ID’ with the value of SalespersonSetID
OnBeforeUpdateSalesInvoiceHeader
local procedure OnBeforeUpdateSalesInvoiceHeader(var SalesInvoiceHeader: Record "Sales Invoice Header"; var SalesPersonDict: Dictionary of [Code[10], Code[20]]; var IsHandled: Boolean)
Raised before “Get” method. Use this event for “AddLoadFields()” if you encounter “jit” problems.
Parameters / Return Value
SalesInvoiceHeader
Record "Sales Invoice Header"
SalesPersonDict
Dictionary[Code,Code]
Dictionary of Role/Salespersons
IsHandled
Boolean
Return true if you take full responsibility for updating the ‘EOS Salesperson Set ID’ with the value of SalespersonSetID
OnBeforeUpdateSalesInvoiceLine
local procedure OnBeforeUpdateSalesInvoiceLine(var SalesInvoiceLine: Record "Sales Invoice Line"; var SalesPersonDict: Dictionary of [Code[10], Code[20]]; var IsHandled: Boolean)
Raised before “Get” method. Use this event for “AddLoadFields()” if you encounter “jit” problems.
Parameters / Return Value
SalesInvoiceLine
Record "Sales Invoice Line"
SalesPersonDict
Dictionary[Code,Code]
Dictionary of Role/Salespersons
IsHandled
Boolean
Return true if you take full responsibility for updating the ‘EOS Salesperson Set ID’ with the value of SalespersonSetID
OnBeforeUpdateSalesCreditMemoHeader
local procedure OnBeforeUpdateSalesCreditMemoHeader(var SalesCreditMemoHeader: Record "Sales Cr.Memo Header"; var SalesPersonDict: Dictionary of [Code[10], Code[20]]; var IsHandled: Boolean)
Raised before “Get” method. Use this event for “AddLoadFields()” if you encounter “jit” problems.
Parameters / Return Value
SalesCreditMemoHeader
Record "Sales Cr.Memo Header"
SalesPersonDict
Dictionary[Code,Code]
Dictionary of Role/Salespersons
IsHandled
Boolean
Return true if you take full responsibility for updating the ‘EOS Salesperson Set ID’ with the value of SalespersonSetID
OnBeforeUpdateSalesCreditMemoLine
local procedure OnBeforeUpdateSalesCreditMemoLine(var SalesCreditMemoLine: Record "Sales Cr.Memo Line"; var SalesPersonDict: Dictionary of [Code[10], Code[20]]; var IsHandled: Boolean)
Raised before “Get” method. Use this event for “AddLoadFields()” if you encounter “jit” problems.
Parameters / Return Value
SalesCreditMemoLine
Record "Sales Cr.Memo Line"
SalesPersonDict
Dictionary[Code,Code]
Dictionary of Role/Salespersons
IsHandled
Boolean
return true if you handle the “EOS Salesperson Set ID” field update
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.