KVSKBASalesLib#
Procedures#
CreatePurchOrderBySalesOrder(Record Sales Header, Option, Code[20], Code[20]) :#
Summary: Creates a purchase order based on a sales order.
procedure CreatePurchOrderBySalesOrder(SalesHeader: Record "Sales Header"; OrderType: Option; OrderNo: Code[20]; VendorNo: Code[20]):
Parameters:
SalesHeader
: The sales header record.OrderType
: The type of the order.OrderNo
: The order number.VendorNo
: The vendor number.
Remarks: This procedure creates a purchase order based on a sales order. OrderType options: - Normal: not supported - Drop Shipment: Direct delivery from vendor to customer without intermediate storage - Special Order: Special order for specific requirements or customer-specific items The procedure calls the full parameter procedure with ShowDocument = true and MultipleVendors = false.
CreatePurchOrderBySalesOrder(Record Sales Header, Option, Code[20], Code[20], Boolean) :#
Summary: Creates a purchase order based on a sales order.
procedure CreatePurchOrderBySalesOrder(SalesHeader: Record "Sales Header"; OrderType: Option; OrderNo: Code[20]; VendorNo: Code[20]; ShowDocument: Boolean):
Parameters:
SalesHeader
: The sales header record.OrderType
: The type of the order.OrderNo
: The order number.VendorNo
: The vendor number.ShowDocument
: Indicates if the document should be shown.
Remarks: This procedure creates a purchase order based on a sales order. OrderType options: - Normal: not supported - Drop Shipment: Direct delivery from vendor to customer without intermediate storage - Special Order: Special order for specific requirements or customer-specific items The procedure calls the full parameter procedure with MultipleVendors = false.
CreatePurchOrderBySalesOrder(Record Sales Header, Option, Code[20], Code[20], Boolean, Boolean) :#
Summary: Creates a purchase order based on a sales order.
procedure CreatePurchOrderBySalesOrder(SalesHeader: Record "Sales Header"; OrderType: Option; OrderNo: Code[20]; VendorNo: Code[20]; ShowDocument: Boolean; MultipleVendors: Boolean):
Parameters:
SalesHeader
: The sales header record.OrderType
: The type of the order.OrderNo
: The order number.VendorNo
: The vendor number.ShowDocument
: Indicates if the document should be shown.MultipleVendors
: Indicates if multiple vendors are allowed.
Remarks: This is the main procedure for creating purchase orders based on sales orders with full parameter control. OrderType options: - Normal: not supported, will result in error - Drop Shipment: Direct delivery from vendor to customer without intermediate storage - Special Order: Special order for specific requirements or customer-specific items
The procedure creates a purchase header, sets up drop shipment or special order processing,
and optionally displays the created document. The MultipleVendors parameter controls whether
the system allows handling multiple vendors during the creation process.
Processing flow:
1. Validates the sell-to customer number and vendor number
2. Creates a purchase header using KVSKBAPurchaseLib
3. Sets multiple vendor handling mode
4. Executes order type specific processing (Drop Shipment or Special Order)
5. Resets multiple vendor mode
6. Tracks created purchase orders for potential batch display
7. Optionally displays the created purchase document
Integration events allow for customization before and after the creation process.
The procedure maintains a list of created purchase order numbers for batch operations.
CalcNoOfDocuments(Record Customer, Boolean, Integer) :#
Summary: Calculates the number of archived documents for a customer.
procedure CalcNoOfDocuments(var Customer: Record "Customer"; BillTo: Boolean; var NoOfDocs: Integer):
Parameters:
Customer
: The customer record.BillTo
: Indicates if the Bill-to customer is used.NoOfDocs
: The array to store the number of documents.
Remarks: This procedure calculates the number of archived sales documents for a customer across different document types. The array indices correspond to: [1] Archived Quotes, [2] Archived Orders, [5] Archived Blanket Orders, [6] Archived Return Orders. Only version 1 of archived documents is counted to ensure accurate document counts without duplicates from multiple versions. The procedure respects date filters applied to the customer record and requires read permissions on the Sales Header Archive table. If no read permissions are available, the array is cleared and the procedure exits gracefully.
CalcSalesHistoryDateFilter(Text) :#
Summary: Calculates the defined period to show the sales history.
procedure CalcSalesHistoryDateFilter(var DateFilterText: Text):
Parameters:
DateFilterText
: The text to display the date filter.
Remarks: This procedure calculates the date filter for sales history display based on the date formula configured in Sales & Receivables Setup. The procedure retrieves the KVSKBADateFormulaSalesHistory field from the setup and calculates the starting date by applying this formula to the current work date. The resulting filter is formatted as "StartDate.." to show all records from the calculated date onwards. If no date formula is configured in the setup, the DateFilterText parameter will be set to an empty string. This filter is typically used in customer cards and sales history pages to limit the displayed data to a relevant time period defined by the organization's business requirements.
CalcUnitPriceInSalesLine(Record Sales Line) :#
Summary: Calculates the price unit in a sales line.
procedure CalcUnitPriceInSalesLine(var SalesLine: Record "Sales Line"):
Parameters:
SalesLine
: The sales line to calculate the price unit for
Remarks: This procedure calculates the price unit in a sales line. If the price unit is 0, it sets it to 1. It calculates the unit price for the price unit by multiplying unit price with price unit. It also sets the print line flag to true if the unit price is not 0 and the print line flag was previously false.
SetSkipErroratNumbering(Boolean) :#
Summary: Sets whether to skip errors during document numbering operations.
procedure SetSkipErroratNumbering(NewSkipErroratNumbering: Boolean):
Parameters:
NewSkipErroratNumbering
: Boolean value that specifies whether to skip errors during numbering.
Remarks: This procedure controls the error handling behavior during position number calculations in sales documents. When set to true, the system will suppress errors that would normally occur during automatic position numbering operations, allowing the process to continue even when validation issues are encountered. This is particularly useful in automated processes or batch operations where stopping for individual numbering errors would disrupt the overall workflow. The setting affects the behavior of procedures like EvaluateSalesLine and RunCalcPosNoInSalesLines when they encounter incomplete or invalid position numbers.
SetSkipShowNumberingPage(Boolean) :#
Summary: Sets whether to skip showing the numbering page during document numbering operations.
procedure SetSkipShowNumberingPage(NewSkipShowNumberingPage: Boolean):
Parameters:
NewSkipShowNumberingPage
: Boolean value that specifies whether to skip showing the numbering page.
Remarks: This procedure controls the user interface behavior during position number calculations in sales documents. When set to true, the system will suppress the numbering page dialog that would normally allow users to configure numbering options during the EvaluateSalesLine function execution. This is particularly useful in automated processes, batch operations, or programmatic scenarios where user interaction should be minimized. The setting directly affects the behavior of the EvaluateSalesLine procedure by controlling whether the KVSKBAPositionNumbering page is displayed when GUI interaction is available.
ShowOrderFlowEntryInLines(Record Sales Line) :#
Summary: Shows the order flow entry for the specified sales line.
procedure ShowOrderFlowEntryInLines(SalesLine: Record "Sales Line"):
Parameters:
SalesLine
: The sales line record.
Remarks: This procedure opens the order flow entry page in modal mode to display all order flow entries related to the specified sales line. The procedure filters the order flow entries by table number, document type, document number, and line number to show only entries relevant to the provided sales line.
UpdateOrderFlowEntryByRelease(Record Sales Header, Enum Sales Document Status) :#
procedure UpdateOrderFlowEntryByRelease(SalesHeader: Record "Sales Header"; OldStatus: Enum "Sales Document Status"):
UpdateOrderFlowEntryByReopen(Record Sales Header) :#
Summary: Updates the order flow entry for the specified sales header when the document is reopened.
procedure UpdateOrderFlowEntryByReopen(SalesHeader: Record "Sales Header"):
Parameters:
SalesHeader
: The sales header record.
Remarks: This procedure is called when a sales document is reopened from a released status back to open status. It delegates the actual order flow update logic to the KVSKBAOrderFlowLib codeunit which handles the tracking and management of document status changes throughout the order lifecycle. The order flow entry maintains a history of status changes for reporting and audit purposes.
UpdateOrderFlowEntryByDelete(Record Sales Header) :#
Summary: Updates the order flow entry for the specified sales header when the document is deleted.
procedure UpdateOrderFlowEntryByDelete(SalesHeader: Record "Sales Header"):
Parameters:
SalesHeader
: The sales header record.
Remarks: This procedure is called when a sales document is being deleted from the system. It delegates the actual order flow update logic to the KVSKBAOrderFlowLib codeunit which ensures proper cleanup and maintenance of the order flow tracking system when documents are removed.
EvaluateSalesLine(Record Sales Header, Boolean) :#
Summary: Evaluates and calculates the subtotal-structure of the lines for the specified sales header.
procedure EvaluateSalesLine(SalesHeader: Record "Sales Header"; PosNumbering: Boolean):
Parameters:
SalesHeader
: The sales header record.PosNumbering
: Boolean value indicating whether the field "KVSKBAPositionNo" of the lines will be newly calculated.
Remarks: This procedure performs a comprehensive evaluation of sales lines including subtotal structure calculation and optional position number assignment. It processes all sales lines within the document and handles: - Automatic position numbering based on setup configuration (numbering or structure-based) - Bundle and subtotal structure validation and totaling field calculation - Indentation level management for hierarchical line structures - Integration events for customization at various processing stages
The position numbering behavior depends on the setup:
- Numbering: Sequential numbering with configurable step size
- Structure: Hierarchical numbering (e.g., 1.1, 1.2, 2.1)
- Manual: User interaction via numbering page when GUI is available
The procedure ensures data consistency by validating the total structure before processing
and maintains proper indentation levels for bundle and subtotal hierarchies.
CalcSubTotals(Record Sales Line) :#
Summary: This procedure will calculate the subtotals in the sales line.
procedure CalcSubTotals(var SalesLine: Record "Sales Line"):
Parameters:
SalesLine
: The sales line record.
Remarks: This procedure sets the Line Amount in a KVSKBAEndSubtotalBundle Sales Line to the subtotal of the line. When the totaling field is empty, all amounts are reset to 0. When totaling is configured, the procedure calculates fields using CalcFields for KVSKBASubtotal and related prepayment fields, then assigns these calculated values to the corresponding line amounts. The procedure also handles prepayment amount recalculation based on integration event settings, ensuring accurate financial calculations for bundle and subtotal structures in sales documents.
ResetSubTotalsTab37(Record Sales Line) :#
Summary: This procedure will reset the subtotal fields in a KVSKBAEndSubtotalBundle sales line.
procedure ResetSubTotalsTab37(var SalesLine: Record "Sales Line"):
Parameters:
SalesLine
: The sales line record.
Remarks: This procedure will reset the line amount in a KVSKBAEndSubtotalBundle Sales Line. It resets all amount fields to 0, including Line Amount, Prepmt. Line Amount, and Prepmt. Amt. Inv. This is typically called when the totaling structure needs to be cleared or when subtotal calculations need to be reset before recalculation. The procedure only affects sales lines of type KVSKBAEndSubtotalBundle, ensuring that only subtotal lines are reset while preserving other line types.
AddBundleLinesForSalesInv(Record Sales Header, Integer, Integer) :#
Summary: This procedure will add bundle lines for the unposted sales invoice.
procedure AddBundleLinesForSalesInv(SalesHeader: Record "Sales Header"; FromLineNo: Integer; ToLineNo: Integer):
Parameters:
SalesHeader
: The sales header record.FromLineNo
: The starting line number.ToLineNo
: The ending line number.
Remarks: This procedure will add bundle lines for the unposted sales invoice. It will insert new sales lines with Type::Bundle and Type::End-Bundle for all sales lines in the specified range. The new Saleslines will be inserted on base of the bundle-structure in the Sales Shipment Line. The bundle-structure will be analyzed for the first level only (not multi-level).
FindBundleReturnRcptLine(Record Return Receipt Line, Record Return Receipt Line) : Boolean#
Summary: This procedure will find the bundle start line for a given return receipt line.
procedure FindBundleReturnRcptLine(ReturnReceiptLine: Record "Return Receipt Line"; var BundleStartReturnReceiptLine: Record "Return Receipt Line"): Boolean
Parameters:
ReturnReceiptLine
: The return receipt line record.BundleStartReturnReceiptLine
: The bundle start return receipt line record.
Returns: True if the bundle start line is found, otherwise false.
Remarks: This procedure searches backwards from the given return receipt line to find the corresponding bundle start line (Type::KVSKBABundle). It examines all preceding lines in the same document to locate bundle or end bundle markers. The search stops when it finds the first bundle-related line type (Bundle, Subtotal, or EndSubtotalBundle). If the found line is of type KVSKBABundle, it returns true and sets the BundleStartReturnReceiptLine parameter. This is essential for maintaining bundle structure integrity when processing return receipts and ensuring proper grouping of bundled items in return scenarios.
InsertBundleLines(Record Sales Line, Boolean, Boolean, Boolean, Text[100], Code[20]) :#
Summary: This procedure will insert bundle lines for a given sales line.
procedure InsertBundleLines(SalesLine: Record "Sales Line"; BeforeCurrLine: Boolean; CloseOldBundle: Boolean; OpenNewBundle: Boolean; DescriptionText: Text[100]; PosNo: Code[20]):
Parameters:
SalesLine
: The sales line record.BeforeCurrLine
: Indicates if the new lines should be inserted before the current line.CloseOldBundle
: Indicates if the old bundle should be closed.OpenNewBundle
: Indicates if a new bundle should be opened.DescriptionText
: The description text for the new lines.PosNo
: The position number for the new lines.
Remarks: This procedure will insert bundle lines for a given sales line. This procedure will be insert a new Salesline to finish a old bundle and/or open a new bundle. if Parameter BeforeCurrLine = TRUE the new line(s) will be inserted before the SalesLine, else it will be inserted after it. if Parameter CloseOldBundle = TRUE it will be insert a Salesline to finish the old Bundle if Parameter OpenNewBundle = TRUE it will be insert a Salesline to start a new Bundle
DeleteAddedTablesTab36(Record Sales Header) :#
Summary: Deletes added tables for a sales header.
procedure DeleteAddedTablesTab36(SalesHeader: Record "Sales Header"):
Parameters:
SalesHeader
: The sales header record.
Remarks: This procedure deletes additional table data associated with a sales header, specifically document text entries at the header level (line number 0). It ensures clean removal of related data when sales headers are deleted by removing all KVSKBASalesDocumentText records that match the document type, document number, and have a document line number of 0.
DeleteAddedTablesTab37(Record Sales Line) :#
Summary: Deletes added tables for a sales line.
procedure DeleteAddedTablesTab37(SalesLine: Record "Sales Line"):
Parameters:
SalesLine
: The sales line record.
Remarks: This procedure deletes additional table data associated with a sales line, specifically document text entries at the line level. It only processes lines with non-zero line numbers and provides integration events for customization of the deletion process. The procedure removes all KVSKBASalesDocumentText records that match the document type, document number, and document line number.
CopyAddedTablesCustToTab36(Record Sales Header) :#
Summary: Copies added tables from customer to sales header.
procedure CopyAddedTablesCustToTab36(SalesHeader: Record "Sales Header"):
Parameters:
SalesHeader
: The sales header record.
Remarks: This procedure automatically copies extended text and document text from the sell-to customer to the sales header. It uses the transfer extended text codeunit to handle the copying process and provides integration events for additional customization of the text transfer logic. The procedure specifically targets the sell-to customer (not bill-to customer) and transfers all related text entries that are configured for automatic transfer. This includes customer-specific document headers, footers, and other text content that should appear on sales documents. Integration events allow for further customization of which text content is transferred.
CopyAddedTablesLineNoToTab37(Record Sales Line) :#
Summary: Copies added tables from line type and number to sales line.
procedure CopyAddedTablesLineNoToTab37(SalesLine: Record "Sales Line"):
Parameters:
SalesLine
: The sales line record.
Remarks: This procedure automatically copies extended text and document text from the line's source (G/L account, item, or resource) to the sales line. It uses the transfer extended text codeunit and provides integration events for additional customization. The procedure determines the source based on the sales line's Type and No. fields and transfers all related text entries that are configured for automatic transfer. This includes item-specific descriptions, G/L account texts, resource texts content that should appear on sales documents. Integration events allow for further customization of which text content is transferred and how the transfer process is handled.
CopyAddedTablesTab36ToTab36(Record Sales Header, Record Sales Header) :#
Summary: Copies added tables from sales header to sales header.
procedure CopyAddedTablesTab36ToTab36(FromSalesHeader: Record "Sales Header"; ToSalesHeader: Record "Sales Header"):
Parameters:
FromSalesHeader
: The source sales header record.ToSalesHeader
: The target sales header record.
Remarks: This procedure copies additional table data (such as document text) from one sales header to another. It includes date filtering to copy only currently valid entries and provides integration events for customization. The copying process respects starting and ending dates to ensure only relevant text entries are transferred between documents. The procedure filters for text entries that are either valid today (starting date is empty or less than or equal to today) and (ending date is empty or greater than or equal to today). Only document text entries with line number 0 (header level) are copied. The Formatted Text field is automatically calculated during the copy process to ensure proper text rendering. Integration events allow subscribers to customize the copying behavior or add additional validation.
CopyAddedTablesTab37ToTab37(Record Sales Line, Record Sales Line) :#
Summary: Copies added tables from sales line to sales line.
procedure CopyAddedTablesTab37ToTab37(FromSalesLine: Record "Sales Line"; ToSalesLine: Record "Sales Line"):
Parameters:
FromSalesLine
: The source sales line record.ToSalesLine
: The target sales line record.
Remarks: This procedure copies additional table data (such as document text) from one sales line to another. It includes date filtering to copy only currently valid entries and provides integration events for customization. The copying process respects starting and ending dates to ensure only relevant text entries are transferred between sales lines. The procedure filters for text entries that are either valid today (starting date is empty or less than or equal to today) and (ending date is empty or greater than or equal to today). Only document text entries matching the specific document type, document number, and line number are copied. The Formatted Text field is automatically calculated during the copy process to ensure proper text rendering. Integration events allow subscribers to customize the copying behavior or add additional validation and processing logic.
CopyAddedTablesTab111ToTab37(Record Sales Shipment Line, Record Sales Line) :#
Summary: Copies added tables from sales shipment line to sales line.
procedure CopyAddedTablesTab111ToTab37(FromSalesShipmentLine: Record "Sales Shipment Line"; ToSalesLine: Record "Sales Line"):
Parameters:
FromSalesShipmentLine
: The source sales shipment line record.ToSalesLine
: The target sales line record.
Remarks: This procedure copies additional table data (such as document text) from a posted sales shipment line to an unposted sales line. It includes date filtering to copy only currently valid entries and provides integration events for customization. The copying process respects starting and ending dates to ensure only relevant text entries are transferred from posted documents back to unposted documents. The procedure filters for text entries that are valid today (starting date is empty or less than or equal to today) and (ending date is empty or greater than or equal to today). Only document text entries matching the specific document type, document number, and line number are copied. The Formatted Text field is automatically calculated during the copy process to ensure proper text rendering. This is typically used when creating credit memos or return orders based on previously shipped items, ensuring that all related text information is properly transferred back from the posted shipment to the new document.
CopyAddedTablesTab113ToTab37(Record Sales Invoice Line, Record Sales Line) :#
Summary: Copies added tables from sales invoice line to sales line.
procedure CopyAddedTablesTab113ToTab37(FromSalesInvoiceLine: Record "Sales Invoice Line"; ToSalesLine: Record "Sales Line"):
Parameters:
FromSalesInvoiceLine
: The source sales invoice line record.ToSalesLine
: The target sales line record.
Remarks: This procedure copies additional table data (such as document text) from a posted sales invoice line to an unposted sales line. It includes date filtering to copy only currently valid entries and provides integration events for customization. The copying process respects starting and ending dates to ensure only relevant text entries are transferred from posted documents back to unposted documents. The procedure filters for text entries that are valid today (starting date is empty or less than or equal to today) and (ending date is empty or greater than or equal to today). Only document text entries matching the specific document type, document number, and line number are copied. The Formatted Text field is automatically calculated during the copy process to ensure proper text rendering. This is typically used when creating credit memos or corrective documents based on previously invoiced items, ensuring that all related text information is properly transferred back from the posted invoice to the new document.
CopyAddedTablesTab115ToTab37(Record Sales Cr.Memo Line, Record Sales Line) :#
Summary: Copies added tables from sales credit memo line to sales line.
procedure CopyAddedTablesTab115ToTab37(FromSalesCrMemoLine: Record "Sales Cr.Memo Line"; ToSalesLine: Record "Sales Line"):
Parameters:
FromSalesCrMemoLine
: The source sales credit memo line record.ToSalesLine
: The target sales line record.
Remarks: This procedure copies additional table data (such as document text) from a posted sales credit memo line to an unposted sales line. It includes date filtering to copy only currently valid entries and provides integration events for customization. The copying process respects starting and ending dates to ensure only relevant text entries are transferred from posted documents back to unposted documents. The procedure filters for text entries that are valid today (starting date is empty or less than or equal to today) and (ending date is empty or greater than or equal to today). Only document text entries matching the specific document type, document number, and line number are copied. The Formatted Text field is automatically calculated during the copy process to ensure proper text rendering. This is typically used when creating corrective documents or new sales documents based on previously credited items, ensuring that all related text information is properly transferred back from the posted credit memo to the new document.
CopyAddedTablesTab6661ToTab37(Record Return Receipt Line, Record Sales Line) :#
Summary: Copies added tables from return receipt line to sales line.
procedure CopyAddedTablesTab6661ToTab37(FromReturnReceiptLine: Record "Return Receipt Line"; ToSalesLinePar: Record "Sales Line"):
Parameters:
FromReturnReceiptLine
: The source return receipt line record.ToSalesLinePar
: The target sales line record.
Remarks: This procedure copies additional table data (such as document text) from a posted return receipt line to an unposted sales line. It includes date filtering to copy only currently valid entries and provides integration events for customization. The copying process respects starting and ending dates to ensure only relevant text entries are transferred from posted documents back to unposted documents. The procedure filters for text entries that are valid today (starting date is empty or less than or equal to today) and (ending date is empty or greater than or equal to today). Only document text entries matching the specific document type, document number, and line number are copied. The Formatted Text field is automatically calculated during the copy process to ensure proper text rendering. This is typically used when creating new sales documents or corrective orders based on previously processed return receipts, ensuring that all related text information is properly transferred back from the posted return receipt to the new document.
CopyAddedTablesTab5107ToTab36(Record Sales Header Archive, Record Sales Header) :#
Summary: Copies added tables from sales header archive to sales header.
procedure CopyAddedTablesTab5107ToTab36(FromSalesHeaderArchive: Record "Sales Header Archive"; ToSalesHeader: Record "Sales Header"):
Parameters:
FromSalesHeaderArchive
: The source sales header archive record.ToSalesHeader
: The target sales header record.
Remarks: This procedure copies additional table data (such as document text) from a sales header archive to an unposted sales header. It includes date filtering to copy only currently valid entries and provides integration events for customization. The copying process respects starting and ending dates to ensure only relevant text entries are transferred from archived documents back to unposted documents. The procedure filters for text entries that are valid today (starting date is empty or less than or equal to today) and (ending date is empty or greater than or equal to today). Only document text entries matching the specific document type, document number, document occurrence, version number, and line number 0 (header level) are copied. The Formatted Text field is automatically calculated during the copy process to ensure proper text rendering. This is typically used when restoring documents from archives or creating new documents based on previously archived versions, ensuring that all related text information is properly transferred back from the archive to the new document.
CopyAddedTablesTab5108ToTab37(Record Sales Line Archive, Record Sales Line) :#
Summary: Copies added tables from sales line archive to sales line.
procedure CopyAddedTablesTab5108ToTab37(FromSalesLineArchive: Record "Sales Line Archive"; ToSalesLine: Record "Sales Line"):
Parameters:
FromSalesLineArchive
: The source sales line archive record.ToSalesLine
: The target sales line record.
Remarks: This procedure copies additional table data (such as document text) from a sales line archive to an unposted sales line. It includes date filtering to copy only currently valid entries and provides integration events for customization. The copying process respects starting and ending dates to ensure only relevant text entries are transferred from archived documents back to unposted documents. The procedure filters for text entries that are valid today (starting date is empty or less than or equal to today) and (ending date is empty or greater than or equal to today). Only document text entries matching the specific document type, document number, document occurrence, version number, and line number are copied. The Formatted Text field is automatically calculated during the copy process to ensure proper text rendering. This is typically used when restoring documents from archives or creating new documents based on previously archived versions, ensuring that all related text information is properly transferred back from the archive to the new document.
ShowSalesDocTextLines(Enum Sales Document Type, Code[20], Integer, Enum KVSKBATextPosition) :#
procedure ShowSalesDocTextLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocLineNo: Integer; TextPosition: Enum "KVSKBATextPosition"):
DoShowSalesDocTextLines(Enum Sales Document Type, Code[20], Integer, Enum KVSKBATextPosition, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('Not intended for public use. Will be internal in future releases. Please use procedure ShowSalesDocTextLines.', '26.5')]
procedure DoShowSalesDocTextLines(SalesDocumentType: Enum "Sales Document Type"; DocNoPar: Code[20]; DocLineNo: Integer; TextPosition: Enum "KVSKBATextPosition"; IsHandled: Boolean):
CalcNoOfSalesDocTextLines(Enum Sales Document Type, Code[20], Integer, Enum KVSKBATextPosition) : Integer#
procedure CalcNoOfSalesDocTextLines(DocType: Enum "Sales Document Type"; DocNo: Code[20]; DocLineNo: Integer; TextPosition: Enum "KVSKBATextPosition"): Integer
GetSpecialNote(Integer, Code[20]) : Text[50]#
Summary: Retrieves a special note for a customer, an item or resource
procedure GetSpecialNote(DatabaseInteger: Integer; No: Code[20]): Text[50]
Parameters:
DatabaseInteger
: Source Table ID as Integer for searchingNo
: Source No. from Record for searching
Returns: Return value of type Text 50
Remarks: This function retrieves special notes from comment lines for customers, items, or resources based on the special notes code defined in Sales & Receivables Setup. The function searches comment lines with the specified table name and number, filtering by the KVSKBACodeofSpecialNotes from setup. If multiple comment lines exist for the same record, they are concatenated with spaces between them. The function supports three source tables: Customer (Database::Customer), Item (Database::Item), and Resource (Database::Resource). If an unsupported table is specified or if no special notes code is configured in setup, the function returns an empty string. The returned text is limited to 50 characters maximum. Integration events allow for customization of the filtering logic and handling of special note retrieval.
ShowSpecialNote(Integer, Code[20]) :#
Summary: Shows a special note for a customer, an item or resource
procedure ShowSpecialNote(DatabaseInteger: Integer; No: Code[20]):
Parameters:
DatabaseInteger
: Source Table ID as Integer for searchingNo
: Source No. from Record for searching
Remarks: This procedure opens a modal page to display special notes from comment lines for customers, items, or resources. It uses the special notes code defined in Sales & Receivables Setup to filter the comment lines and shows all matching entries in the Comment List page. The procedure supports three source tables: Customer (Database::Customer), Item (Database::Item), and Resource (Database::Resource). If an unsupported table is specified, no special notes code is configured in setup, or the number parameter is empty, the procedure exits without displaying anything. This provides a user-friendly interface for viewing and managing special notes associated with business entities. Integration events allow for customization of the display behavior and provide hooks for additional processing before showing the comment list.
CheckBlanketOrderLineToOrder(Record Sales Line) : Boolean#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('This procedure is no longer supported, because it is not used internally.', '26.5')]
procedure CheckBlanketOrderLineToOrder(SalesLine: Record "Sales Line"): Boolean
MessageExistQuoteBlankOrdTab37(Record Sales Line, Boolean, Boolean, Boolean, Boolean) :#
Summary: Checks if there are existing quotes or blanket orders for the given sales line and create a notification
procedure MessageExistQuoteBlankOrdTab37(var SalesLine: Record "Sales Line"; CheckQuotes: Boolean; CheckBlankOrders: Boolean; var MessageQuotesShown: Boolean; var MessageBlankOrdersShown: Boolean):
Parameters:
SalesLine
: The sales line to check for existing quotes or blanket ordersCheckQuotes
: Boolean to indicate if quotes should be checkedCheckBlankOrders
: Boolean to indicate if blanket orders should be checkedMessageQuotesShown
: Output boolean to indicate if a notification for existing quotes was shownMessageBlankOrdersShown
: Output boolean to indicate if a notification for existing blanket orders was shown
Remarks: This procedure checks for existing quotes and blanket orders that match the current sales line item and customer, creating user notifications when duplicates are found. It only processes Item type lines for Quote, Order, and Blanket Order documents, excluding temporary records. For quotes, it searches for lines with Quantity > 0, while for blanket orders it looks for lines with Outstanding Quantity > 0. The procedure respects user instruction settings to control notification display and provides integration events for customized filtering logic. Notifications allow users to view existing documents and optionally link to blanket order lines directly. This helps prevent duplicate entries and improves order management efficiency by surfacing related existing documents.
CheckTotalStructureInSalesLine(Record Sales Header, Boolean) :#
Summary: Checks the total structure in sales lines for the given sales header.
procedure CheckTotalStructureInSalesLine(SalesHeader: Record "Sales Header"; CheckTotaling: Boolean):
Parameters:
SalesHeader
: The sales header to check the total structure for.CheckTotaling
: Boolean to indicate if totaling should be checked.
Remarks: This procedure validates the structural integrity of bundle and subtotal hierarchies in sales documents. It ensures proper nesting and sequence of special line types including Bundle, Subtotal, and EndSubtotalBundle lines.
Key validation rules:
- Bundles cannot contain other bundles (no nested bundles allowed)
- Bundles cannot contain subtotals (bundles are self-contained)
- Every Bundle or Subtotal must have a corresponding EndSubtotalBundle
- EndSubtotalBundle lines must have preceding Bundle or Subtotal lines
- The number of opening and closing elements must match
When CheckTotaling is enabled, the procedure additionally validates that the Totaling field
in EndSubtotalBundle lines contains the correct range formula (e.g., "10000..20000") that
matches the actual line number range from the corresponding Bundle/Subtotal start line.
Integration events allow for customization of validation logic and error handling.
This validation is essential for maintaining proper document structure before posting
and ensuring accurate subtotal calculations in bundled sales scenarios.
RunCalcPosNoInSalesLines(Record Sales Header, Boolean) : Boolean#
Summary: Runs the calculation of position numbers in sales lines for the given sales header.
procedure RunCalcPosNoInSalesLines(SalesHeader: Record "Sales Header"; Unconditionally: Boolean): Boolean
Parameters:
SalesHeader
: The sales header record to process position numbers for.Unconditionally
: Boolean to indicate if the calculation should be performed unconditionally.
Returns: Returns true if position number calculation was performed or needed, false otherwise.
Remarks: This procedure manages the automatic assignment and validation of position numbers in sales lines based on Sales & Receivables Setup configuration. The behavior depends on the KVSKBACheckPosNoInSalesLines setting:
When called unconditionally (Unconditionally = true):
- Automatic numbering: Performs automatic position number assignment for missing numbers
- Manual numbering: Calls EvaluateSalesLine without position numbering for structure calculation only
- Handles user interaction when GUI is available and document status allows modifications
The procedure processes only lines with Type between G/L Account and Allocation Account that have:
- A specified number (No. field is not empty)
- Missing position numbers (KVSKBAPositionNo is empty)
Error handling varies by document status:
- Open documents: Allows automatic numbering or prompts user for confirmation
- Released documents: Raises errors for incomplete position numbers
- Non-GUI execution: Raises specific errors when user interaction is required
Integration events provide customization points for validation logic and processing behavior.
CheckPosNoNotEmptyInSalesLine(Record Sales Header) :#
Summary: Checks if the position numbers in sales lines are not empty and performs automatic numbering if necessary.
procedure CheckPosNoNotEmptyInSalesLine(SalesHeader: Record "Sales Header"):
Parameters:
SalesHeader
: The sales header record to check position numbers for.
Remarks: This procedure validates that all sales lines have position numbers (KVSKBAPositionNo) filled. It performs a comprehensive check and takes appropriate action based on the Sales & Receivables Setup configuration:
The procedure checks three possible states:
- All: All required lines have position numbers - procedure exits successfully
- None: No lines have position numbers - automatic numbering if enabled and document is open
- Some: Only some lines have position numbers - requires user confirmation for automatic numbering
Behavior based on setup and document status:
- Automatic numbering enabled + Open document: Performs automatic numbering (with user confirmation for 'Some' state)
- Automatic numbering disabled OR Released document: Raises error if position numbers are missing
- Non-GUI execution: Raises specific error when user interaction would be required
This validation is essential before posting or releasing documents to ensure all sales lines
have proper position numbers for reporting and document structure integrity.
TransferSalesLine2ItemJnLine(Record Sales Header, Record Sales Line, Record Item Journal Line) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('The table KVSKBAPostingCode will no longer be used', '25.3')]
procedure TransferSalesLine2ItemJnLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ItemJournalLine: Record "Item Journal Line"):
GlobalUndoSalesShptSalesLine2ItemJnl(Record Sales Shipment Line, Record Item Journal Line) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('The table KVSKBAPostingCode will no longer be used', '25.3')]
procedure GlobalUndoSalesShptSalesLine2ItemJnl(SalesShipmentLine: Record "Sales Shipment Line"; var ItemJournalLine: Record "Item Journal Line"):
TestAdditionalTableRelationatT37(Record Sales Line) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('This procedure is no longer supported, because it only checks standard table relations.', '26.5')]
procedure TestAdditionalTableRelationatT37(SalesLine: Record "Sales Line"):
InsertSalesReleaseArchiveOnRelease(Record Sales Header) :#
Summary: Insert sales header and lines in sales release archive on release
procedure InsertSalesReleaseArchiveOnRelease(SalesHeader: Record "Sales Header"):
Parameters:
SalesHeader
: Sales header record
Remarks: This procedure creates an archive entry when a sales document is released for the first time. It calls the main archiving procedure with default parameters, specifically setting PendingApproval and DocBelowMinProfit to false, and clearing profit-related fields (DocProfitPct, DocMinProfitPct, DocMinProfitSource, LowDocProfitReleasedBy). This represents a standard release without profit validation.
ShowMinProfitListOfSalesHeader(Record Sales Header) :#
Summary: Shows the minimum profit list page for the specified sales header.
procedure ShowMinProfitListOfSalesHeader(SalesHeader: Record "Sales Header"):
Parameters:
SalesHeader
: The sales header record to display minimum profit information for.
Remarks: This procedure opens the "Sales Lines Min. Profit List" page in modal mode, displaying all sales lines of the provided sales header with their minimum profit details. The page allows users to review and analyze profit margins for individual sales lines, providing visibility into profitability at the line level. This is essential for profit management and ensures that sales personnel can evaluate whether lines meet minimum profit requirements before document processing. The modal display allows for focused analysis without navigating away from the current context.
IsSalesLineTypeForTotalingCalculation(Enum Sales Line Type) : Boolean#
procedure IsSalesLineTypeForTotalingCalculation(SalesLineType: Enum "Sales Line Type"): Boolean
OnCheckErrorIsSalesLineTypeForTotalingCalculation(Enum Sales Line Type) : Boolean#
procedure OnCheckErrorIsSalesLineTypeForTotalingCalculation(SalesLineType: Enum "Sales Line Type"): Boolean
CalcServiceCharge(Record Sales Line) : Boolean#
Summary: Calculates the service charge for the sales line and ensures that discounts are set to 0.
procedure CalcServiceCharge(var SalesLine: Record "Sales Line"): Boolean
Parameters:
SalesLine
: The sales line to update the service charge for.
Returns: Boolean that indicates whether the service charge was calculated and the sales line was updated.
Remarks: This procedure calculates and validates service charges for G/L Account lines that match the service charge account from the customer posting group. It retrieves the service charge amount from customer invoice discount records based on the charge base calculated from VAT amount lines. The procedure ensures line discounts are reset to 0 and handles both VAT-inclusive and VAT-exclusive pricing scenarios. Only system-created entries for billable G/L accounts are processed.
Prerequisites for processing:
- Sales line must be system-created entry
- Type must be G/L Account
- Account number must match service charge account from customer posting group
- Line must be billable (KVSKBANotBillable empty or KVSKBANullPosition = No)
The calculation process:
1. Calculates charge base from VAT amount lines
2. Retrieves service charge from customer invoice discount based on charge base
3. Sets line discount to 0
4. Updates unit price considering VAT inclusion settings
Integration events allow for customization of the calculation logic and post-processing.
Events#
OnAfterCopyPriceUnitFromSalesPriceToSalesLine(Record KVSKBASalesPrice, Record Sales Line) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised after copying price unit from sales price to sales line.
[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnAfterCopyPriceUnitFromSalesPriceToSalesLine(KVSKBASalesPrice: Record "KVSKBASalesPrice"; var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterCopyPriceUnitFromSalesPriceToSalesLine', '', false, false)]
local procedure DoSomethingOnAfterCopyPriceUnitFromSalesPriceToSalesLine(KVSKBASalesPrice: Record "KVSKBASalesPrice"; var SalesLine: Record "Sales Line")
begin
end;
Parameters:
KVSKBASalesPrice
: The sales price record being copied from.SalesLine
: The sales line record being updated (by reference).
OnAfterCreatePurchaseOrderBySalesOrder(Record Sales Header, Record Purchase Header, Option, Boolean, Boolean) :#
Summary: Integration event raised after creating a purchase order from a sales order.
[IntegrationEvent(false, false)]
local procedure OnAfterCreatePurchaseOrderBySalesOrder(var SalesHeader: Record "Sales Header"; var PurchaseHeader: Record "Purchase Header"; OrderTypePar: Option; var ShowDocument: Boolean; MultipleVendors: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterCreatePurchaseOrderBySalesOrder', '', false, false)]
local procedure DoSomethingOnAfterCreatePurchaseOrderBySalesOrder(var SalesHeader: Record "Sales Header"; var PurchaseHeader: Record "Purchase Header"; OrderTypePar: Option; var ShowDocument: Boolean; MultipleVendors: Boolean)
begin
end;
Parameters:
SalesHeader
: The source sales header record (by reference).PurchaseHeader
: The created purchase header record (by reference).OrderTypePar
: The order type option (Normal, Drop Shipment, Special Order).ShowDocument
: Boolean flag indicating whether to show the created document (by reference).MultipleVendors
: Boolean flag indicating if multiple vendors are involved.
OnAfterShowSalesDocTextLines(Enum Sales Document Type, Code[20], Integer, Enum KVSKBATextPosition) :#
[IntegrationEvent(false, false)]
local procedure OnAfterShowSalesDocTextLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterShowSalesDocTextLines', '', false, false)]
local procedure DoSomethingOnAfterShowSalesDocTextLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition")
begin
end;
OnAfterTestAdditionalTableRelationatSalesLine(Record Sales Line) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised after testing additional table relations at sales line.
[Obsolete('This procedure is no longer supported, because it only checks standard table relations.', '26.5')]
[IntegrationEvent(false, false)]
local procedure OnAfterTestAdditionalTableRelationatSalesLine(SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterTestAdditionalTableRelationatSalesLine', '', false, false)]
local procedure DoSomethingOnAfterTestAdditionalTableRelationatSalesLine(SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine
: The sales line record being tested.
OnAfterTransferfieldBillToCustInTab36(Record Customer, Record Sales Header) :#
Summary: Integration event raised after transferring bill-to customer fields to sales header.
[IntegrationEvent(false, false)]
local procedure OnAfterTransferfieldBillToCustInTab36(Customer: Record "Customer"; var SalesHeader: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterTransferfieldBillToCustInTab36', '', false, false)]
local procedure DoSomethingOnAfterTransferfieldBillToCustInTab36(Customer: Record "Customer"; var SalesHeader: Record "Sales Header")
begin
end;
Parameters:
Customer
: The customer record being transferred from.SalesHeader
: The sales header record being updated (by reference).
OnAfterTransferfieldHeaderInTab37(Record Sales Header, Record Sales Line) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised after transferring header fields to sales line.
[Obsolete('The table KVSKBAPostingCode will no longer be used', '25.3')]
[IntegrationEvent(false, false)]
local procedure OnAfterTransferfieldHeaderInTab37(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterTransferfieldHeaderInTab37', '', false, false)]
local procedure DoSomethingOnAfterTransferfieldHeaderInTab37(SalesHeader: Record "Sales Header"; var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesHeader
: The sales header record being transferred from.SalesLine
: The sales line record being updated (by reference).
OnAfterTransferfieldSellToCustInTab36(Record Customer, Record Sales Header) :#
Summary: Integration event raised after transferring sell-to customer fields to sales header.
[IntegrationEvent(false, false)]
local procedure OnAfterTransferfieldSellToCustInTab36(Customer: Record "Customer"; var SalesHeader: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterTransferfieldSellToCustInTab36', '', false, false)]
local procedure DoSomethingOnAfterTransferfieldSellToCustInTab36(Customer: Record "Customer"; var SalesHeader: Record "Sales Header")
begin
end;
Parameters:
Customer
: The customer record being transferred from.SalesHeader
: The sales header record being updated (by reference).
OnAfterTransferfieldItemInTabSalesLine(Record Item, Record Sales Line) :#
Summary: Integration event raised after transferring item fields to sales line.
[IntegrationEvent(false, false)]
local procedure OnAfterTransferfieldItemInTabSalesLine(Item: Record "Item"; var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterTransferfieldItemInTabSalesLine', '', false, false)]
local procedure DoSomethingOnAfterTransferfieldItemInTabSalesLine(Item: Record "Item"; var SalesLine: Record "Sales Line")
begin
end;
Parameters:
Item
: The item record being transferred from.SalesLine
: The sales line record being updated (by reference).
OnBeforeGetDefaultSalesOrderType(Record Sales Header, Boolean) :#
Summary: Integration event raised before getting default sales order type.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetDefaultSalesOrderType(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeGetDefaultSalesOrderType', '', false, false)]
local procedure DoSomethingOnBeforeGetDefaultSalesOrderType(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCheckPosNoNotEmptyInSalesLine(Record Sales Header, Boolean) :#
Summary: Integration event raised before checking position numbers are not empty in sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckPosNoNotEmptyInSalesLine(SalesHeaderPar: Record "Sales Header"; var HandledVar: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCheckPosNoNotEmptyInSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckPosNoNotEmptyInSalesLine(SalesHeaderPar: Record "Sales Header"; var HandledVar: Boolean)
begin
end;
Parameters:
SalesHeaderPar
: The sales header record being processed.HandledVar
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCalcUnitPriceInSalesPrice(Record KVSKBASalesPrice, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised before calculating unit price in sales price.
[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcUnitPriceInSalesPrice(var SalesPrice: Record "KVSKBASalesPrice"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCalcUnitPriceInSalesPrice', '', false, false)]
local procedure DoSomethingOnBeforeCalcUnitPriceInSalesPrice(var SalesPrice: Record "KVSKBASalesPrice"; var Handled: Boolean)
begin
end;
Parameters:
SalesPrice
: The sales price record being processed (by reference).Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCalcUnitPricePUInSalesPrice(Record KVSKBASalesPrice, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised before calculating unit price PU in sales price.
[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcUnitPricePUInSalesPrice(var SalesPrice: Record "KVSKBASalesPrice"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCalcUnitPricePUInSalesPrice', '', false, false)]
local procedure DoSomethingOnBeforeCalcUnitPricePUInSalesPrice(var SalesPrice: Record "KVSKBASalesPrice"; var Handled: Boolean)
begin
end;
Parameters:
SalesPrice
: The sales price record being processed (by reference).Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCalcPUInSalesPrice(Record KVSKBASalesPrice, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised before calculating PU in sales price.
[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcPUInSalesPrice(var SalesPrice: Record "KVSKBASalesPrice"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCalcPUInSalesPrice', '', false, false)]
local procedure DoSomethingOnBeforeCalcPUInSalesPrice(var SalesPrice: Record "KVSKBASalesPrice"; var Handled: Boolean)
begin
end;
Parameters:
SalesPrice
: The sales price record being processed (by reference).Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCalcNoInSalesLine(Record Sales Line, Boolean) :#
Summary: Integration event raised before calculating number in sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcNoInSalesLine(var SalesLine: Record "Sales Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCalcNoInSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeCalcNoInSalesLine(var SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record being processed (by reference).Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCheckPrintLineInTabSalesLine(Record Sales Line, Boolean) :#
Summary: Integration event raised before checking print line in sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckPrintLineInTabSalesLine(SalesLine: Record "Sales Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCheckPrintLineInTabSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckPrintLineInTabSalesLine(SalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record being checked.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeTypeAndNoAreStatedTab37(Record Sales Line, Boolean, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised before checking if type and no are stated in sales line.
[Obsolete('This event is no longer supported, please use event OnBeforeCheckTypeAndNoAreStatedOnSalesLine', '25.2')]
[IntegrationEvent(false, false)]
local procedure OnBeforeTypeAndNoAreStatedTab37(SalesLine: Record "Sales Line"; ReturnValue: Boolean; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeTypeAndNoAreStatedTab37', '', false, false)]
local procedure DoSomethingOnBeforeTypeAndNoAreStatedTab37(SalesLine: Record "Sales Line"; ReturnValue: Boolean; var Handled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record being checked.ReturnValue
: The return value of the check.Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnCopyAddedTablesCustToTab36(Record Sales Header) :#
Summary: Integration event raised when copying added tables from customer to sales header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesCustToTab36(SalesHeaderPar: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesCustToTab36', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesCustToTab36(SalesHeaderPar: Record "Sales Header")
begin
end;
Parameters:
SalesHeaderPar
: The sales header record being updated.
OnCopyAddedTablesContToTab36(Record Sales Header) :#
Summary: Integration event raised when copying added tables from contact to sales header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesContToTab36(SalesHeaderPar: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesContToTab36', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesContToTab36(SalesHeaderPar: Record "Sales Header")
begin
end;
Parameters:
SalesHeaderPar
: The sales header record being updated.
OnCopyAddedTablesLineNoToTab37(Record Sales Line) :#
Summary: Integration event raised when copying added tables from line number to sales line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesLineNoToTab37(SalesLinePar: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesLineNoToTab37', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesLineNoToTab37(SalesLinePar: Record "Sales Line")
begin
end;
Parameters:
SalesLinePar
: The sales line record being updated.
OnBeforeCopyAddedTablesTab36ToTab36(Record Sales Header, Record Sales Header, Boolean) :#
Summary: Integration event raised before copying added tables from sales header to sales header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab36ToTab36(FromSalesHeaderPar: Record "Sales Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab36ToTab36', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab36ToTab36(FromSalesHeaderPar: Record "Sales Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesHeaderPar
: The target sales header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab36ToTab110(Record Sales Header, Record Sales Shipment Header, Boolean) :#
Summary: Integration event raised before copying added tables from sales header to sales shipment header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab36ToTab110(FromSalesHeaderPar: Record "Sales Header"; ToSalesShptheader: Record "Sales Shipment Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab36ToTab110', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab36ToTab110(FromSalesHeaderPar: Record "Sales Header"; ToSalesShptheader: Record "Sales Shipment Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesShptheader
: The target sales shipment header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab36ToTab112(Record Sales Header, Record Sales Invoice Header, Boolean) :#
Summary: Integration event raised before copying added tables from sales header to sales invoice header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab36ToTab112(FromSalesHeaderPar: Record "Sales Header"; ToSalesInvHeader: Record "Sales Invoice Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab36ToTab112', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab36ToTab112(FromSalesHeaderPar: Record "Sales Header"; ToSalesInvHeader: Record "Sales Invoice Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesInvHeader
: The target sales invoice header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab36ToTab114(Record Sales Header, Record Sales Cr.Memo Header, Boolean) :#
Summary: Integration event raised before copying added tables from sales header to sales credit memo header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab36ToTab114(FromSalesHeaderPar: Record "Sales Header"; ToSalesCrMemoHeaderPar: Record "Sales Cr.Memo Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab36ToTab114', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab36ToTab114(FromSalesHeaderPar: Record "Sales Header"; ToSalesCrMemoHeaderPar: Record "Sales Cr.Memo Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesCrMemoHeaderPar
: The target sales credit memo header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab36ToTab6660(Record Sales Header, Record Return Receipt Header, Boolean) :#
Summary: Integration event raised before copying added tables from sales header to return receipt header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab36ToTab6660(FromSalesHeaderPar: Record "Sales Header"; ToReturnRcptHeader: Record "Return Receipt Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab36ToTab6660', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab36ToTab6660(FromSalesHeaderPar: Record "Sales Header"; ToReturnRcptHeader: Record "Return Receipt Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToReturnRcptHeader
: The target return receipt header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab36ToTab5107(Record Sales Header, Record Sales Header Archive, Boolean) :#
Summary: Integration event raised before copying added tables from sales header to sales header archive.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab36ToTab5107(FromSalesHeaderPar: Record "Sales Header"; ToSalesHeaderArchPar: Record "Sales Header Archive"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab36ToTab5107', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab36ToTab5107(FromSalesHeaderPar: Record "Sales Header"; ToSalesHeaderArchPar: Record "Sales Header Archive"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesHeaderArchPar
: The target sales header archive record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab37ToTab37(Record Sales Line, Record Sales Line, Boolean) :#
Summary: Integration event raised before copying added tables from sales line to sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab37ToTab37(FromSalesLinePar: Record "Sales Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab37ToTab37', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab37ToTab37(FromSalesLinePar: Record "Sales Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesLinePar
: The target sales line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab37ToTab111(Record Sales Line, Record Sales Shipment Line, Boolean) :#
Summary: Integration event raised before copying added tables from sales line to sales shipment line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab37ToTab111(FromSalesLinePar: Record "Sales Line"; ToSalesShptLinePar: Record "Sales Shipment Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab37ToTab111', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab37ToTab111(FromSalesLinePar: Record "Sales Line"; ToSalesShptLinePar: Record "Sales Shipment Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesShptLinePar
: The target sales shipment line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab37ToTab113(Record Sales Line, Record Sales Invoice Line, Boolean) :#
Summary: Integration event raised before copying added tables from sales line to sales invoice line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab37ToTab113(FromSalesLinePar: Record "Sales Line"; ToSalesInvLinePar: Record "Sales Invoice Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab37ToTab113', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab37ToTab113(FromSalesLinePar: Record "Sales Line"; ToSalesInvLinePar: Record "Sales Invoice Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesInvLinePar
: The target sales invoice line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab37ToTab115(Record Sales Line, Record Sales Cr.Memo Line, Boolean) :#
Summary: Integration event raised before copying added tables from sales line to sales credit memo line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab37ToTab115(FromSalesLinePar: Record "Sales Line"; ToSalesCrMemoLinePar: Record "Sales Cr.Memo Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab37ToTab115', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab37ToTab115(FromSalesLinePar: Record "Sales Line"; ToSalesCrMemoLinePar: Record "Sales Cr.Memo Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesCrMemoLinePar
: The target sales credit memo line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab37ToTab6661(Record Sales Line, Record Return Receipt Line, Boolean) :#
Summary: Integration event raised before copying added tables from sales line to return receipt line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab37ToTab6661(FromSalesLinePar: Record "Sales Line"; ToReturnReceiptLinePar: Record "Return Receipt Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab37ToTab6661', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab37ToTab6661(FromSalesLinePar: Record "Sales Line"; ToReturnReceiptLinePar: Record "Return Receipt Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToReturnReceiptLinePar
: The target return receipt line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab37ToTab5108(Record Sales Line, Record Sales Line Archive, Boolean) :#
Summary: Integration event raised before copying added tables from sales line to sales line archive.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab37ToTab5108(FromSalesLinePar: Record "Sales Line"; ToSalesLineArchPar: Record "Sales Line Archive"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab37ToTab5108', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab37ToTab5108(FromSalesLinePar: Record "Sales Line"; ToSalesLineArchPar: Record "Sales Line Archive"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesLineArchPar
: The target sales line archive record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab110ToTab36(Record Sales Shipment Header, Record Sales Header, Boolean) :#
Summary: Integration event raised before copying added tables from sales shipment header to sales header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab110ToTab36(FromSalesShipmentHeaderPar: Record "Sales Shipment Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab110ToTab36', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab110ToTab36(FromSalesShipmentHeaderPar: Record "Sales Shipment Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesShipmentHeaderPar
: The source sales shipment header record.ToSalesHeaderPar
: The target sales header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab111ToTab37(Record Sales Shipment Line, Record Sales Line, Boolean) :#
Summary: Integration event raised before copying added tables from sales shipment line to sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab111ToTab37(FromSalesShptLinePar: Record "Sales Shipment Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab111ToTab37', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab111ToTab37(FromSalesShptLinePar: Record "Sales Shipment Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesShptLinePar
: The source sales shipment line record.ToSalesLinePar
: The target sales line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab112ToTab36(Record Sales Invoice Header, Record Sales Header, Boolean) :#
Summary: Integration event raised before copying added tables from sales invoice header to sales header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab112ToTab36(FromSalesInvoiceHeaderPar: Record "Sales Invoice Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab112ToTab36', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab112ToTab36(FromSalesInvoiceHeaderPar: Record "Sales Invoice Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesInvoiceHeaderPar
: The source sales invoice header record.ToSalesHeaderPar
: The target sales header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab113ToTab37(Record Sales Invoice Line, Record Sales Line, Boolean) :#
Summary: Integration event raised before copying added tables from sales invoice line to sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab113ToTab37(FromSalesInvLinePar: Record "Sales Invoice Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab113ToTab37', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab113ToTab37(FromSalesInvLinePar: Record "Sales Invoice Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesInvLinePar
: The source sales invoice line record.ToSalesLinePar
: The target sales line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab114ToTab36(Record Sales Cr.Memo Header, Record Sales Header, Boolean) :#
Summary: Integration event raised before copying added tables from sales credit memo header to sales header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab114ToTab36(FromSalesCrMemoHeaderPar: Record "Sales Cr.Memo Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab114ToTab36', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab114ToTab36(FromSalesCrMemoHeaderPar: Record "Sales Cr.Memo Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesCrMemoHeaderPar
: The source sales credit memo header record.ToSalesHeaderPar
: The target sales header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab115ToTab37(Record Sales Cr.Memo Line, Record Sales Line, Boolean) :#
Summary: Integration event raised before copying added tables from sales credit memo line to sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab115ToTab37(FromSalesCrMemoLinePar: Record "Sales Cr.Memo Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab115ToTab37', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab115ToTab37(FromSalesCrMemoLinePar: Record "Sales Cr.Memo Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesCrMemoLinePar
: The source sales credit memo line record.ToSalesLinePar
: The target sales line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab6660ToTab36(Record Return Receipt Header, Record Sales Header, Boolean) :#
Summary: Integration event raised before copying added tables from return receipt header to sales header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab6660ToTab36(FromReturnRcptHeaderPar: Record "Return Receipt Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab6660ToTab36', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab6660ToTab36(FromReturnRcptHeaderPar: Record "Return Receipt Header"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromReturnRcptHeaderPar
: The source return receipt header record.ToSalesHeaderPar
: The target sales header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab6661ToTab37(Record Return Receipt Line, Record Sales Line, Boolean) :#
Summary: Integration event raised before copying added tables from return receipt line to sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab6661ToTab37(FromReturnRcptLinePar: Record "Return Receipt Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab6661ToTab37', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab6661ToTab37(FromReturnRcptLinePar: Record "Return Receipt Line"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromReturnRcptLinePar
: The source return receipt line record.ToSalesLinePar
: The target sales line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab5107ToTab36(Record Sales Header Archive, Record Sales Header, Boolean) :#
Summary: Integration event raised before copying added tables from sales header archive to sales header.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab5107ToTab36(FromSalesHeaderArchivePar: Record "Sales Header Archive"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab5107ToTab36', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab5107ToTab36(FromSalesHeaderArchivePar: Record "Sales Header Archive"; ToSalesHeaderPar: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesHeaderArchivePar
: The source sales header archive record.ToSalesHeaderPar
: The target sales header record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCopyAddedTablesTab5108ToTab37(Record Sales Line Archive, Record Sales Line, Boolean) :#
Summary: Integration event raised before copying added tables from sales line archive to sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCopyAddedTablesTab5108ToTab37(FromSalesLineArchivePar: Record "Sales Line Archive"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCopyAddedTablesTab5108ToTab37', '', false, false)]
local procedure DoSomethingOnBeforeCopyAddedTablesTab5108ToTab37(FromSalesLineArchivePar: Record "Sales Line Archive"; ToSalesLinePar: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
Parameters:
FromSalesLineArchivePar
: The source sales line archive record.ToSalesLinePar
: The target sales line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnCopyAddedTablesTab36ToTab36(Record Sales Header, Record Sales Header) :#
Summary: Integration event raised when copying added tables from sales header to sales header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab36ToTab36(FromSalesHeaderPar: Record "Sales Header"; ToSalesHeaderPar: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab36ToTab36', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab36ToTab36(FromSalesHeaderPar: Record "Sales Header"; ToSalesHeaderPar: Record "Sales Header")
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesHeaderPar
: The target sales header record.
OnCopyAddedTablesTab36ToTab110(Record Sales Header, Record Sales Shipment Header) :#
Summary: Integration event raised when copying added tables from sales header to sales shipment header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab36ToTab110(FromSalesHeaderPar: Record "Sales Header"; ToSalesShptheader: Record "Sales Shipment Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab36ToTab110', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab36ToTab110(FromSalesHeaderPar: Record "Sales Header"; ToSalesShptheader: Record "Sales Shipment Header")
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesShptheader
: The target sales shipment header record.
OnCopyAddedTablesTab36ToTab112(Record Sales Header, Record Sales Invoice Header) :#
Summary: Integration event raised when copying added tables from sales header to sales invoice header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab36ToTab112(FromSalesHeaderPar: Record "Sales Header"; ToSalesInvHeader: Record "Sales Invoice Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab36ToTab112', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab36ToTab112(FromSalesHeaderPar: Record "Sales Header"; ToSalesInvHeader: Record "Sales Invoice Header")
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesInvHeader
: The target sales invoice header record.
OnCopyAddedTablesTab36ToTab114(Record Sales Header, Record Sales Cr.Memo Header) :#
Summary: Integration event raised when copying added tables from sales header to sales credit memo header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab36ToTab114(FromSalesHeaderPar: Record "Sales Header"; ToSalesCrMemoHeaderPar: Record "Sales Cr.Memo Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab36ToTab114', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab36ToTab114(FromSalesHeaderPar: Record "Sales Header"; ToSalesCrMemoHeaderPar: Record "Sales Cr.Memo Header")
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesCrMemoHeaderPar
: The target sales credit memo header record.
OnCopyAddedTablesTab36ToTab6660(Record Sales Header, Record Return Receipt Header) :#
Summary: Integration event raised when copying added tables from sales header to return receipt header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab36ToTab6660(FromSalesHeaderPar: Record "Sales Header"; ToReturnRcptHeader: Record "Return Receipt Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab36ToTab6660', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab36ToTab6660(FromSalesHeaderPar: Record "Sales Header"; ToReturnRcptHeader: Record "Return Receipt Header")
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToReturnRcptHeader
: The target return receipt header record.
OnCopyAddedTablesTab36ToTab5107(Record Sales Header, Record Sales Header Archive) :#
Summary: Integration event raised when copying added tables from sales header to sales header archive.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab36ToTab5107(FromSalesHeaderPar: Record "Sales Header"; ToSalesHeaderArchPar: Record "Sales Header Archive"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab36ToTab5107', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab36ToTab5107(FromSalesHeaderPar: Record "Sales Header"; ToSalesHeaderArchPar: Record "Sales Header Archive")
begin
end;
Parameters:
FromSalesHeaderPar
: The source sales header record.ToSalesHeaderArchPar
: The target sales header archive record.
OnCopyAddedTablesTab37ToTab37(Record Sales Line, Record Sales Line) :#
Summary: Integration event raised when copying added tables from sales line to sales line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab37ToTab37(FromSalesLinePar: Record "Sales Line"; ToSalesLinePar: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab37ToTab37', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab37ToTab37(FromSalesLinePar: Record "Sales Line"; ToSalesLinePar: Record "Sales Line")
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesLinePar
: The target sales line record.
OnCopyAddedTablesTab37ToTab111(Record Sales Line, Record Sales Shipment Line) :#
Summary: Integration event raised when copying added tables from sales line to sales shipment line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab37ToTab111(FromSalesLinePar: Record "Sales Line"; ToSalesShptLinePar: Record "Sales Shipment Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab37ToTab111', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab37ToTab111(FromSalesLinePar: Record "Sales Line"; ToSalesShptLinePar: Record "Sales Shipment Line")
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesShptLinePar
: The target sales shipment line record.
OnCopyAddedTablesTab37ToTab113(Record Sales Line, Record Sales Invoice Line) :#
Summary: Integration event raised when copying added tables from sales line to sales invoice line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab37ToTab113(FromSalesLinePar: Record "Sales Line"; ToSalesInvLinePar: Record "Sales Invoice Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab37ToTab113', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab37ToTab113(FromSalesLinePar: Record "Sales Line"; ToSalesInvLinePar: Record "Sales Invoice Line")
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesInvLinePar
: The target sales invoice line record.
OnCopyAddedTablesTab37ToTab115(Record Sales Line, Record Sales Cr.Memo Line) :#
Summary: Integration event raised when copying added tables from sales line to sales credit memo line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab37ToTab115(FromSalesLinePar: Record "Sales Line"; ToSalesCrMemoLinePar: Record "Sales Cr.Memo Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab37ToTab115', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab37ToTab115(FromSalesLinePar: Record "Sales Line"; ToSalesCrMemoLinePar: Record "Sales Cr.Memo Line")
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesCrMemoLinePar
: The target sales credit memo line record.
OnCopyAddedTablesTab37ToTab6661(Record Sales Line, Record Return Receipt Line) :#
Summary: Integration event raised when copying added tables from sales line to return receipt line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab37ToTab6661(FromSalesLinePar: Record "Sales Line"; ToReturnReceiptLinePar: Record "Return Receipt Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab37ToTab6661', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab37ToTab6661(FromSalesLinePar: Record "Sales Line"; ToReturnReceiptLinePar: Record "Return Receipt Line")
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToReturnReceiptLinePar
: The target return receipt line record.
OnCopyAddedTablesTab37ToTab5108(Record Sales Line, Record Sales Line Archive) :#
Summary: Integration event raised when copying added tables from sales line to sales line archive.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab37ToTab5108(FromSalesLinePar: Record "Sales Line"; ToSalesLineArchPar: Record "Sales Line Archive"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab37ToTab5108', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab37ToTab5108(FromSalesLinePar: Record "Sales Line"; ToSalesLineArchPar: Record "Sales Line Archive")
begin
end;
Parameters:
FromSalesLinePar
: The source sales line record.ToSalesLineArchPar
: The target sales line archive record.
OnCopyAddedTablesTab110ToTab36(Record Sales Shipment Header, Record Sales Header) :#
Summary: Integration event raised when copying added tables from sales shipment header to sales header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab110ToTab36(FromSalesShipmentHeaderPar: Record "Sales Shipment Header"; ToSalesHeaderPar: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab110ToTab36', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab110ToTab36(FromSalesShipmentHeaderPar: Record "Sales Shipment Header"; ToSalesHeaderPar: Record "Sales Header")
begin
end;
Parameters:
FromSalesShipmentHeaderPar
: The source sales shipment header record.ToSalesHeaderPar
: The target sales header record.
OnCopyAddedTablesTab111ToTab37(Record Sales Shipment Line, Record Sales Line) :#
Summary: Integration event raised when copying added tables from sales shipment line to sales line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab111ToTab37(FromSalesShptLinePar: Record "Sales Shipment Line"; ToSalesLinePar: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab111ToTab37', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab111ToTab37(FromSalesShptLinePar: Record "Sales Shipment Line"; ToSalesLinePar: Record "Sales Line")
begin
end;
Parameters:
FromSalesShptLinePar
: The source sales shipment line record.ToSalesLinePar
: The target sales line record.
OnCopyAddedTablesTab112ToTab36(Record Sales Invoice Header, Record Sales Header) :#
Summary: Integration event raised when copying added tables from sales invoice header to sales header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab112ToTab36(FromSalesInvoiceHeaderPar: Record "Sales Invoice Header"; ToSalesHeaderPar: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab112ToTab36', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab112ToTab36(FromSalesInvoiceHeaderPar: Record "Sales Invoice Header"; ToSalesHeaderPar: Record "Sales Header")
begin
end;
Parameters:
FromSalesInvoiceHeaderPar
: The source sales invoice header record.ToSalesHeaderPar
: The target sales header record.
OnCopyAddedTablesTab113ToTab37(Record Sales Invoice Line, Record Sales Line) :#
Summary: Integration event raised when copying added tables from sales invoice line to sales line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab113ToTab37(FromSalesInvLinePar: Record "Sales Invoice Line"; ToSalesLinePar: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab113ToTab37', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab113ToTab37(FromSalesInvLinePar: Record "Sales Invoice Line"; ToSalesLinePar: Record "Sales Line")
begin
end;
Parameters:
FromSalesInvLinePar
: The source sales invoice line record.ToSalesLinePar
: The target sales line record.
OnCopyAddedTablesTab114ToTab36(Record Sales Cr.Memo Header, Record Sales Header) :#
Summary: Integration event raised when copying added tables from sales credit memo header to sales header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab114ToTab36(FromSalesCrMemoHeaderPar: Record "Sales Cr.Memo Header"; ToSalesHeaderPar: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab114ToTab36', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab114ToTab36(FromSalesCrMemoHeaderPar: Record "Sales Cr.Memo Header"; ToSalesHeaderPar: Record "Sales Header")
begin
end;
Parameters:
FromSalesCrMemoHeaderPar
: The source sales credit memo header record.ToSalesHeaderPar
: The target sales header record.
OnCopyAddedTablesTab115ToTab37(Record Sales Cr.Memo Line, Record Sales Line) :#
Summary: Integration event raised when copying added tables from sales credit memo line to sales line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab115ToTab37(FromSalesCrMemoLinePar: Record "Sales Cr.Memo Line"; ToSalesLinePar: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab115ToTab37', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab115ToTab37(FromSalesCrMemoLinePar: Record "Sales Cr.Memo Line"; ToSalesLinePar: Record "Sales Line")
begin
end;
Parameters:
FromSalesCrMemoLinePar
: The source sales credit memo line record.ToSalesLinePar
: The target sales line record.
OnCopyAddedTablesTab6660ToTab36(Record Return Receipt Header, Record Sales Header) :#
Summary: Integration event raised when copying added tables from return receipt header to sales header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab6660ToTab36(FromReturnRcptHeaderPar: Record "Return Receipt Header"; ToSalesHeaderPar: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab6660ToTab36', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab6660ToTab36(FromReturnRcptHeaderPar: Record "Return Receipt Header"; ToSalesHeaderPar: Record "Sales Header")
begin
end;
Parameters:
FromReturnRcptHeaderPar
: The source return receipt header record.ToSalesHeaderPar
: The target sales header record.
OnCopyAddedTablesTab6661ToTab37(Record Return Receipt Line, Record Sales Line) :#
Summary: Integration event raised when copying added tables from return receipt line to sales line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab6661ToTab37(FromReturnRcptLinePar: Record "Return Receipt Line"; ToSalesLinePar: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab6661ToTab37', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab6661ToTab37(FromReturnRcptLinePar: Record "Return Receipt Line"; ToSalesLinePar: Record "Sales Line")
begin
end;
Parameters:
FromReturnRcptLinePar
: The source return receipt line record.ToSalesLinePar
: The target sales line record.
OnCopyAddedTablesTab5107ToTab36(Record Sales Header Archive, Record Sales Header) :#
Summary: Integration event raised when copying added tables from sales header archive to sales header.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab5107ToTab36(FromSalesHeaderArchivePar: Record "Sales Header Archive"; ToSalesHeaderPar: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab5107ToTab36', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab5107ToTab36(FromSalesHeaderArchivePar: Record "Sales Header Archive"; ToSalesHeaderPar: Record "Sales Header")
begin
end;
Parameters:
FromSalesHeaderArchivePar
: The source sales header archive record.ToSalesHeaderPar
: The target sales header record.
OnCopyAddedTablesTab5108ToTab37(Record Sales Line Archive, Record Sales Line) :#
Summary: Integration event raised when copying added tables from sales line archive to sales line.
[IntegrationEvent(false, false)]
local procedure OnCopyAddedTablesTab5108ToTab37(FromSalesLineArchivePar: Record "Sales Line Archive"; ToSalesLinePar: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCopyAddedTablesTab5108ToTab37', '', false, false)]
local procedure DoSomethingOnCopyAddedTablesTab5108ToTab37(FromSalesLineArchivePar: Record "Sales Line Archive"; ToSalesLinePar: Record "Sales Line")
begin
end;
Parameters:
FromSalesLineArchivePar
: The source sales line archive record.ToSalesLinePar
: The target sales line record.
OnDeleteAddedTablesTab36(Record Sales Header) :#
Summary: Integration event raised when deleting added tables for sales header.
[IntegrationEvent(false, false)]
local procedure OnDeleteAddedTablesTab36(SalesHeaderPar: Record "Sales Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnDeleteAddedTablesTab36', '', false, false)]
local procedure DoSomethingOnDeleteAddedTablesTab36(SalesHeaderPar: Record "Sales Header")
begin
end;
Parameters:
SalesHeaderPar
: The sales header record for which to delete added tables.
OnDeleteAddedTablesTab37(Record Sales Line) :#
Summary: Integration event raised when deleting added tables for sales line.
[IntegrationEvent(false, false)]
local procedure OnDeleteAddedTablesTab37(SalesLinePar: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnDeleteAddedTablesTab37', '', false, false)]
local procedure DoSomethingOnDeleteAddedTablesTab37(SalesLinePar: Record "Sales Line")
begin
end;
Parameters:
SalesLinePar
: The sales line record for which to delete added tables.
OnEvaluateSalesLineOnAfterSalesLineModify(Record Sales Line) :#
Summary: Integration event raised after modifying sales line during evaluation.
[IntegrationEvent(false, false)]
local procedure OnEvaluateSalesLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnEvaluateSalesLineOnAfterSalesLineModify', '', false, false)]
local procedure DoSomethingOnEvaluateSalesLineOnAfterSalesLineModify(var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine
: The sales line record that was modified (by reference).
OnEvaluateSalesLineOnBeforeSalesLineModify(Record Sales Line) :#
Summary: Integration event raised before modifying sales line during evaluation.
[IntegrationEvent(false, false)]
local procedure OnEvaluateSalesLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnEvaluateSalesLineOnBeforeSalesLineModify', '', false, false)]
local procedure DoSomethingOnEvaluateSalesLineOnBeforeSalesLineModify(var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine
: The sales line record to be modified (by reference).
OnTransferfieldsCrMemoLineInCU80(Record Sales Cr.Memo Line, Record Sales Header, Record Sales Line, Record Sales Cr.Memo Header) :#
Summary: Integration event raised when transferring fields for credit memo line in codeunit 80.
[IntegrationEvent(false, false)]
local procedure OnTransferfieldsCrMemoLineInCU80(var SalesCrMemoLine: Record "Sales Cr.Memo Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnTransferfieldsCrMemoLineInCU80', '', false, false)]
local procedure DoSomethingOnTransferfieldsCrMemoLineInCU80(var SalesCrMemoLine: Record "Sales Cr.Memo Line"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; SalesCrMemoHeader: Record "Sales Cr.Memo Header")
begin
end;
Parameters:
SalesCrMemoLine
: The sales credit memo line record (by reference).SalesHeader
: The sales header record.SalesLine
: The sales line record.SalesCrMemoHeader
: The sales credit memo header record.
OnBeforeSetSalespersonCode(Code[20], Code[20], Boolean) :#
Summary: Integration event raised before setting salesperson code.
[IntegrationEvent(false, false)]
local procedure OnBeforeSetSalespersonCode(SalesPersonCodeToCheck: Code[20]; var SalesPersonCodeToAssign: Code[20]; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeSetSalespersonCode', '', false, false)]
local procedure DoSomethingOnBeforeSetSalespersonCode(SalesPersonCodeToCheck: Code[20]; var SalesPersonCodeToAssign: Code[20]; var Handled: Boolean)
begin
end;
Parameters:
SalesPersonCodeToCheck
: The salesperson code to check.SalesPersonCodeToAssign
: The salesperson code to assign (by reference).Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeTestValidateSalesPerson(Code[20], Boolean, Boolean, Boolean) :#
Summary: Integration event raised before testing and validating salesperson.
[IntegrationEvent(false, false)]
local procedure OnBeforeTestValidateSalesPerson(SalesPersonCode: Code[20]; IsTransaction: Boolean; IsPostAction: Boolean; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeTestValidateSalesPerson', '', false, false)]
local procedure DoSomethingOnBeforeTestValidateSalesPerson(SalesPersonCode: Code[20]; IsTransaction: Boolean; IsPostAction: Boolean; var Handled: Boolean)
begin
end;
Parameters:
SalesPersonCode
: The salesperson code to validate.IsTransaction
: Whether this is a transaction.IsPostAction
: Whether this is a post action.Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCalcUnitPriceInSalesLine(Record Sales Line, Boolean) :#
Summary: Integration event raised before calculating unit price in sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcUnitPriceInSalesLine(var SalesLine: Record "Sales Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCalcUnitPriceInSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeCalcUnitPriceInSalesLine(var SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record (by reference).Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCalcPUInSalesLine(Record Sales Line, Boolean) :#
Summary: Integration event raised before calculating purchase price in sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcPUInSalesLine(var SalesLine: Record "Sales Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCalcPUInSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeCalcPUInSalesLine(var SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record (by reference).Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCreatePurchaseOrderBySalesOrder(Record Sales Header, Option, Code[20], Code[20], Boolean, Boolean, Boolean) :#
Summary: Integration event raised before creating purchase order by sales order.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreatePurchaseOrderBySalesOrder(var SalesHeaderPar: Record "Sales Header"; OrderTypePar: Option; OrderNoPar: Code[20]; VendorNoPar: Code[20]; ShowDocument: Boolean; MultipleVendors: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCreatePurchaseOrderBySalesOrder', '', false, false)]
local procedure DoSomethingOnBeforeCreatePurchaseOrderBySalesOrder(var SalesHeaderPar: Record "Sales Header"; OrderTypePar: Option; OrderNoPar: Code[20]; VendorNoPar: Code[20]; ShowDocument: Boolean; MultipleVendors: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeaderPar
: The sales header record (by reference).OrderTypePar
: The order type (Normal, Drop Shipment, Special Order).OrderNoPar
: The order number.VendorNoPar
: The vendor number.ShowDocument
: Whether to show the document.MultipleVendors
: Whether multiple vendors are involved.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeTransferSalesLine2ItemJnLine(Record Sales Header, Record Sales Line, Record Item Journal Line, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised before transferring sales line to item journal line.
[Obsolete('The table KVSKBAPostingCode will no longer be used', '25.3')]
[IntegrationEvent(false, false)]
local procedure OnBeforeTransferSalesLine2ItemJnLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeTransferSalesLine2ItemJnLine', '', false, false)]
local procedure DoSomethingOnBeforeTransferSalesLine2ItemJnLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"; var Handled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record.SalesLine
: The sales line record.ItemJnlLine
: The item journal line record (by reference).Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnAfterTransferSalesLine2ItemJnLine(Record Sales Header, Record Sales Line, Record Item Journal Line) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised after transferring sales line to item journal line.
[Obsolete('The table KVSKBAPostingCode will no longer be used', '25.3')]
[IntegrationEvent(false, false)]
local procedure OnAfterTransferSalesLine2ItemJnLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterTransferSalesLine2ItemJnLine', '', false, false)]
local procedure DoSomethingOnAfterTransferSalesLine2ItemJnLine(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var ItemJnlLine: Record "Item Journal Line")
begin
end;
Parameters:
SalesHeader
: The sales header record.SalesLine
: The sales line record.ItemJnlLine
: The item journal line record (by reference).
OnBeforeCheckNullPositionInSalesLine(Record Sales Line, Boolean, Boolean) :#
Summary: Integration event raised before checking null position in sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckNullPositionInSalesLine(SalesLine: Record "Sales Line"; CheckNullPositionNo: Boolean; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCheckNullPositionInSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckNullPositionInSalesLine(SalesLine: Record "Sales Line"; CheckNullPositionNo: Boolean; var Handled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record to check.CheckNullPositionNo
: Whether to check null position number.Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeEvaluateSalesLine(Record Sales Header, Boolean, Boolean) :#
Summary: Integration event raised before evaluating sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeEvaluateSalesLine(SalesHeader: Record "Sales Header"; PosNumbering: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeEvaluateSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeEvaluateSalesLine(SalesHeader: Record "Sales Header"; PosNumbering: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record.PosNumbering
: Whether position numbering is enabled.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeRunCalcPosNoInSalesLines(Record Sales Header, Boolean, Boolean, Boolean) :#
Summary: Integration event raised before running calculation of position numbers in sales lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeRunCalcPosNoInSalesLines(SalesHeader: Record "Sales Header"; Unconditionally: Boolean; var ReturnValue: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeRunCalcPosNoInSalesLines', '', false, false)]
local procedure DoSomethingOnBeforeRunCalcPosNoInSalesLines(SalesHeader: Record "Sales Header"; Unconditionally: Boolean; var ReturnValue: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record.Unconditionally
: Whether to run calculation unconditionally.ReturnValue
: The return value of the calculation (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeShowSalesDocTextLines(Enum Sales Document Type, Code[20], Integer, Enum KVSKBATextPosition, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeShowSalesDocTextLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeShowSalesDocTextLines', '', false, false)]
local procedure DoSomethingOnBeforeShowSalesDocTextLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean)
begin
end;
OnCalcSubTotalsTab37OnBeforeReCalcPrepmtAmounts(Boolean) :#
Summary: Integration event raised before recalculating prepayment amounts during subtotal calculation.
[IntegrationEvent(false, false)]
local procedure OnCalcSubTotalsTab37OnBeforeReCalcPrepmtAmounts(var RecalcPrepmtAmounts: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCalcSubTotalsTab37OnBeforeReCalcPrepmtAmounts', '', false, false)]
local procedure DoSomethingOnCalcSubTotalsTab37OnBeforeReCalcPrepmtAmounts(var RecalcPrepmtAmounts: Boolean)
begin
end;
Parameters:
RecalcPrepmtAmounts
: Boolean flag to control prepayment amount recalculation (by reference).
OnCheckQuoteHeaderToOrderOnBeforeConfirmWithResult(Record Sales Header, Boolean, Boolean) :#
Summary: Integration event raised before confirming quote header to order conversion.
[IntegrationEvent(false, false)]
local procedure OnCheckQuoteHeaderToOrderOnBeforeConfirmWithResult(SalesHeader: Record "Sales Header"; var HideConfirm: Boolean; var Result: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCheckQuoteHeaderToOrderOnBeforeConfirmWithResult', '', false, false)]
local procedure DoSomethingOnCheckQuoteHeaderToOrderOnBeforeConfirmWithResult(SalesHeader: Record "Sales Header"; var HideConfirm: Boolean; var Result: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record.HideConfirm
: Boolean flag to hide confirmation dialog (by reference).Result
: The result of the confirmation (by reference).
OnGetSpecialNoteSetCommentLineFilter(Record Comment Line) :#
Summary: Integration event raised when getting special note to set comment line filter.
[IntegrationEvent(false, false)]
local procedure OnGetSpecialNoteSetCommentLineFilter(var CommentLine: Record "Comment Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnGetSpecialNoteSetCommentLineFilter', '', false, false)]
local procedure DoSomethingOnGetSpecialNoteSetCommentLineFilter(var CommentLine: Record "Comment Line")
begin
end;
Parameters:
CommentLine
: The comment line record to filter (by reference).
OnInsertBundleLinesCloseOldBundleOnAfterSalesLineInsert(Record Sales Line) :#
Summary: Integration event raised after inserting sales line when closing old bundle.
[IntegrationEvent(false, false)]
local procedure OnInsertBundleLinesCloseOldBundleOnAfterSalesLineInsert(var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnInsertBundleLinesCloseOldBundleOnAfterSalesLineInsert', '', false, false)]
local procedure DoSomethingOnInsertBundleLinesCloseOldBundleOnAfterSalesLineInsert(var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine
: The sales line record that was inserted (by reference).
OnInsertBundleLinesCloseOldBundleOnBeforeSalesLineInsert(Record Sales Line) :#
Summary: Integration event raised before inserting sales line when closing old bundle.
[IntegrationEvent(false, false)]
local procedure OnInsertBundleLinesCloseOldBundleOnBeforeSalesLineInsert(var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnInsertBundleLinesCloseOldBundleOnBeforeSalesLineInsert', '', false, false)]
local procedure DoSomethingOnInsertBundleLinesCloseOldBundleOnBeforeSalesLineInsert(var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine
: The sales line record to be inserted (by reference).
OnInsertBundleLinesOpenNewBundleOnAfterSalesLineInsert(Record Sales Line) :#
Summary: Integration event raised after inserting sales line when opening new bundle.
[IntegrationEvent(false, false)]
local procedure OnInsertBundleLinesOpenNewBundleOnAfterSalesLineInsert(var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnInsertBundleLinesOpenNewBundleOnAfterSalesLineInsert', '', false, false)]
local procedure DoSomethingOnInsertBundleLinesOpenNewBundleOnAfterSalesLineInsert(var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine
: The sales line record that was inserted (by reference).
OnInsertBundleLinesOpenNewBundleOnBeforeSalesLineInsert(Record Sales Line) :#
Summary: Integration event raised before inserting sales line when opening new bundle.
[IntegrationEvent(false, false)]
local procedure OnInsertBundleLinesOpenNewBundleOnBeforeSalesLineInsert(var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnInsertBundleLinesOpenNewBundleOnBeforeSalesLineInsert', '', false, false)]
local procedure DoSomethingOnInsertBundleLinesOpenNewBundleOnBeforeSalesLineInsert(var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine
: The sales line record to be inserted (by reference).
OnBeforeTestAdditionalTableRelationatT37(Record Sales Line, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised before testing additional table relations on sales line.
[Obsolete('This event is no longer supported, because the calling procedure only checks standard table relations.', '26.5')]
[IntegrationEvent(false, false)]
local procedure OnBeforeTestAdditionalTableRelationatT37(var SalesLine: Record "Sales Line"; var Handled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeTestAdditionalTableRelationatT37', '', false, false)]
local procedure DoSomethingOnBeforeTestAdditionalTableRelationatT37(var SalesLine: Record "Sales Line"; var Handled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record to test (by reference).Handled
: Boolean flag to indicate if the event has been handled (by reference).
OnMessageExistBlankOrderOnSetFilter(Record Sales Line, Record Sales Line) :#
Summary: Integration event raised when setting filter for blanket order message.
[IntegrationEvent(false, false)]
local procedure OnMessageExistBlankOrderOnSetFilter(var BlanketOrderSalesLine: Record "Sales Line"; SourceSalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnMessageExistBlankOrderOnSetFilter', '', false, false)]
local procedure DoSomethingOnMessageExistBlankOrderOnSetFilter(var BlanketOrderSalesLine: Record "Sales Line"; SourceSalesLine: Record "Sales Line")
begin
end;
Parameters:
BlanketOrderSalesLine
: The blanket order sales line record to filter (by reference).SourceSalesLine
: The source sales line record.
OnMessageExistQuoteOnSetFilter(Record Sales Line, Record Sales Line) :#
Summary: Integration event raised when setting filter for quote message.
[IntegrationEvent(false, false)]
local procedure OnMessageExistQuoteOnSetFilter(var QuoteSalesLine: Record "Sales Line"; SourceSalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnMessageExistQuoteOnSetFilter', '', false, false)]
local procedure DoSomethingOnMessageExistQuoteOnSetFilter(var QuoteSalesLine: Record "Sales Line"; SourceSalesLine: Record "Sales Line")
begin
end;
Parameters:
QuoteSalesLine
: The quote sales line record to filter (by reference).SourceSalesLine
: The source sales line record.
OnCreateNotificationQuoteBlanketOrdExistOnBeforeCreateMessage(Notification, Record Sales Line, Record Sales Line) :#
Summary: Integration event raised before creating notification message for existing quote or blanket order.
[IntegrationEvent(false, false)]
local procedure OnCreateNotificationQuoteBlanketOrdExistOnBeforeCreateMessage(var ShownNotification: Notification; SalesLine: Record "Sales Line"; SourceSalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCreateNotificationQuoteBlanketOrdExistOnBeforeCreateMessage', '', false, false)]
local procedure DoSomethingOnCreateNotificationQuoteBlanketOrdExistOnBeforeCreateMessage(var ShownNotification: Notification; SalesLine: Record "Sales Line"; SourceSalesLine: Record "Sales Line")
begin
end;
Parameters:
ShownNotification
: The notification to be shown (by reference).SalesLine
: The sales line record.SourceSalesLine
: The source sales line record.
OnCreateNotificationQuoteBlanketOrderExistOnAfterSetFilterSalesLine(Record Sales Line, Notification) :#
Summary: Integration event raised after setting filter for quote or blanket order notification.
[IntegrationEvent(false, false)]
local procedure OnCreateNotificationQuoteBlanketOrderExistOnAfterSetFilterSalesLine(var SalesLine: Record "Sales Line"; var ShownNotification: Notification):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCreateNotificationQuoteBlanketOrderExistOnAfterSetFilterSalesLine', '', false, false)]
local procedure DoSomethingOnCreateNotificationQuoteBlanketOrderExistOnAfterSetFilterSalesLine(var SalesLine: Record "Sales Line"; var ShownNotification: Notification)
begin
end;
Parameters:
SalesLine
: The sales line record with filter applied (by reference).ShownNotification
: The notification to be shown (by reference).
OnSetSalesLinePriceOriginFromSalesPriceOnBeforeSalesPriceTypeCaseElse(Record Sales Line, Record KVSKBASalesPrice, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Integration event raised before handling sales price type case else during price origin setting.
[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnSetSalesLinePriceOriginFromSalesPriceOnBeforeSalesPriceTypeCaseElse(var SalesLine: Record "Sales Line"; SalesPrice: Record "KVSKBASalesPrice"; var Ishandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnSetSalesLinePriceOriginFromSalesPriceOnBeforeSalesPriceTypeCaseElse', '', false, false)]
local procedure DoSomethingOnSetSalesLinePriceOriginFromSalesPriceOnBeforeSalesPriceTypeCaseElse(var SalesLine: Record "Sales Line"; SalesPrice: Record "KVSKBASalesPrice"; var Ishandled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record (by reference).SalesPrice
: The sales price record.Ishandled
: Boolean flag to indicate if the event has been handled (by reference).
OnAfterCheckPosNoInSalesLine(Record Sales Header, Option) :#
Summary: Integration event raised after checking position number in sales line.
[IntegrationEvent(false, false)]
local procedure OnAfterCheckPosNoInSalesLine(SalesHeader: Record "Sales Header"; var Result: Option):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterCheckPosNoInSalesLine', '', false, false)]
local procedure DoSomethingOnAfterCheckPosNoInSalesLine(SalesHeader: Record "Sales Header"; var Result: Option)
begin
end;
Parameters:
SalesHeader
: The sales header record.Result
: The result of the check (all, none, some).
OnSalesHeaderOnValidateSalesOrderTypeOnBeforeCreateDim(Record Sales Header, Boolean) :#
Summary: Integration event raised before creating dimensions when validating sales order type on sales header.
[IntegrationEvent(false, false)]
local procedure OnSalesHeaderOnValidateSalesOrderTypeOnBeforeCreateDim(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnSalesHeaderOnValidateSalesOrderTypeOnBeforeCreateDim', '', false, false)]
local procedure DoSomethingOnSalesHeaderOnValidateSalesOrderTypeOnBeforeCreateDim(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnEvaluateSalesLineOnBeforeHandleEndSubTotal(Record Sales Header, Record Sales Line, Integer, Integer, Boolean) :#
Summary: Integration event raised before handling end subtotal during sales line evaluation.
[IntegrationEvent(false, false)]
local procedure OnEvaluateSalesLineOnBeforeHandleEndSubTotal(SalesHeader: Record "Sales Header"; var Salesline: Record "Sales Line"; LineNoArray: Integer; var Indentation: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnEvaluateSalesLineOnBeforeHandleEndSubTotal', '', false, false)]
local procedure DoSomethingOnEvaluateSalesLineOnBeforeHandleEndSubTotal(SalesHeader: Record "Sales Header"; var Salesline: Record "Sales Line"; LineNoArray: Integer; var Indentation: Integer; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record.Salesline
: The sales line record (by reference).LineNoArray
: Array of line numbers.Indentation
: The indentation level (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnEvaluateSalesLineOnCaseStructureOnBeforeValidatePosition(Record Sales Line, Code[20], Boolean) :#
Summary: Integration event raised before validating position during structure evaluation.
[IntegrationEvent(false, false)]
local procedure OnEvaluateSalesLineOnCaseStructureOnBeforeValidatePosition(var Salesline: Record "Sales Line"; var PositionStructure: Code[20]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnEvaluateSalesLineOnCaseStructureOnBeforeValidatePosition', '', false, false)]
local procedure DoSomethingOnEvaluateSalesLineOnCaseStructureOnBeforeValidatePosition(var Salesline: Record "Sales Line"; var PositionStructure: Code[20]; var IsHandled: Boolean)
begin
end;
Parameters:
Salesline
: The sales line record (by reference).PositionStructure
: The position structure code (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnEvaluateSalesLineOnCaseStructureOnBeforeIncreaseTitleArray(Record Sales Line, Integer, Integer, Boolean) :#
Summary: Integration event raised before increasing title array during structure evaluation.
[IntegrationEvent(false, false)]
local procedure OnEvaluateSalesLineOnCaseStructureOnBeforeIncreaseTitleArray(var SalesLine: Record "Sales Line"; var TitleArray: Integer; var i: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnEvaluateSalesLineOnCaseStructureOnBeforeIncreaseTitleArray', '', false, false)]
local procedure DoSomethingOnEvaluateSalesLineOnCaseStructureOnBeforeIncreaseTitleArray(var SalesLine: Record "Sales Line"; var TitleArray: Integer; var i: Integer; var IsHandled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record (by reference).TitleArray
: Array of title numbers (by reference).i
: The array index (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeIsSalesLineTypeForTotalingCalculation(Enum Sales Line Type, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeIsSalesLineTypeForTotalingCalculation(SalesLineType: Enum "Sales Line Type"; var IsEndType: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeIsSalesLineTypeForTotalingCalculation', '', false, false)]
local procedure DoSomethingOnBeforeIsSalesLineTypeForTotalingCalculation(SalesLineType: Enum "Sales Line Type"; var IsEndType: Boolean; var IsHandled: Boolean)
begin
end;
OnBeforeOnCheckErrorIsSalesLineTypeForTotalingCalculation(Enum Sales Line Type, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeOnCheckErrorIsSalesLineTypeForTotalingCalculation(SalesLineType: Enum "Sales Line Type"; var IsEndType: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeOnCheckErrorIsSalesLineTypeForTotalingCalculation', '', false, false)]
local procedure DoSomethingOnBeforeOnCheckErrorIsSalesLineTypeForTotalingCalculation(SalesLineType: Enum "Sales Line Type"; var IsEndType: Boolean; var IsHandled: Boolean)
begin
end;
OnBeforeIsSalesLineTypeForEndBundle(Enum Sales Line Type, Boolean, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeIsSalesLineTypeForEndBundle(SalesLineType: Enum "Sales Line Type"; var IsBundleType: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeIsSalesLineTypeForEndBundle', '', false, false)]
local procedure DoSomethingOnBeforeIsSalesLineTypeForEndBundle(SalesLineType: Enum "Sales Line Type"; var IsBundleType: Boolean; var IsHandled: Boolean)
begin
end;
OnBeforeInsertSalesReleaseArchiveIsHandled(Record Sales Header, Boolean, Boolean, Decimal, Decimal, Enum KVSKBAMinimumProfitSource, Code[50], Boolean) :#
Summary: Integration event raised before inserting sales release archive entry.
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertSalesReleaseArchiveIsHandled(SalesHeader: Record "Sales Header"; PendingApproval: Boolean; DocBelowMinProfit: Boolean; DocProfitPct: Decimal; DocMinProfitPct: Decimal; DocMinProfitSource: Enum "KVSKBAMinimumProfitSource"; LowDocProfitReleasedBy: Code[50]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeInsertSalesReleaseArchiveIsHandled', '', false, false)]
local procedure DoSomethingOnBeforeInsertSalesReleaseArchiveIsHandled(SalesHeader: Record "Sales Header"; PendingApproval: Boolean; DocBelowMinProfit: Boolean; DocProfitPct: Decimal; DocMinProfitPct: Decimal; DocMinProfitSource: Enum "KVSKBAMinimumProfitSource"; LowDocProfitReleasedBy: Code[50]; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record.PendingApproval
: Whether the document is pending approval.DocBelowMinProfit
: Whether the document is below minimum profit.DocProfitPct
: The document profit percentage.DocMinProfitPct
: The document minimum profit percentage.DocMinProfitSource
: The document minimum profit source.LowDocProfitReleasedBy
: The user who released the low profit document.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeUpdateArchiveAfterSalesRelease(Record Sales Header, Record Sales Header, Boolean, Decimal, Decimal, Enum KVSKBAMinimumProfitSource, Code[50], Date, Time, Boolean) :#
Summary: Integration event raised before updating archive after sales release.
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateArchiveAfterSalesRelease(OldSalesHeader: Record "Sales Header"; NewSalesHeader: Record "Sales Header"; DocBelowMinProfit: Boolean; DocProfitPct: Decimal; DocMinProfitPct: Decimal; DocMinProfitSource: Enum "KVSKBAMinimumProfitSource"; LowDocProfitReleasedBy: Code[50]; DateBeforeReleasing: Date; TimeBeforeReleasing: Time; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeUpdateArchiveAfterSalesRelease', '', false, false)]
local procedure DoSomethingOnBeforeUpdateArchiveAfterSalesRelease(OldSalesHeader: Record "Sales Header"; NewSalesHeader: Record "Sales Header"; DocBelowMinProfit: Boolean; DocProfitPct: Decimal; DocMinProfitPct: Decimal; DocMinProfitSource: Enum "KVSKBAMinimumProfitSource"; LowDocProfitReleasedBy: Code[50]; DateBeforeReleasing: Date; TimeBeforeReleasing: Time; var IsHandled: Boolean)
begin
end;
Parameters:
OldSalesHeader
: The old sales header record.NewSalesHeader
: The new sales header record.DocBelowMinProfit
: Whether the document is below minimum profit.DocProfitPct
: The document profit percentage.DocMinProfitPct
: The document minimum profit percentage.DocMinProfitSource
: The document minimum profit source.LowDocProfitReleasedBy
: The user who released the low profit document.DateBeforeReleasing
: The date before releasing.TimeBeforeReleasing
: The time before releasing.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnCheckTotalStructureInSalesLineOnBeforeCheckBundleTotalStructure(Record Sales Line, Boolean, Integer, Boolean, Boolean, Integer, Integer) :#
Summary: Integration event raised before checking bundle total structure in sales line.
[IntegrationEvent(false, false)]
local procedure OnCheckTotalStructureInSalesLineOnBeforeCheckBundleTotalStructure(var Salesline: Record "Sales Line"; var BundleStarted: Boolean; var NumberOfOpenSubtotals: Integer; var IsHandled: Boolean; CheckTotaling: Boolean; LineNoArray: Integer; i: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCheckTotalStructureInSalesLineOnBeforeCheckBundleTotalStructure', '', false, false)]
local procedure DoSomethingOnCheckTotalStructureInSalesLineOnBeforeCheckBundleTotalStructure(var Salesline: Record "Sales Line"; var BundleStarted: Boolean; var NumberOfOpenSubtotals: Integer; var IsHandled: Boolean; CheckTotaling: Boolean; LineNoArray: Integer; i: Integer)
begin
end;
Parameters:
Salesline
: The sales line record (by reference).BundleStarted
: Boolean flag indicating if bundle has started (by reference).NumberOfOpenSubtotals
: Number of open subtotals (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).CheckTotaling
: Whether to check totaling.LineNoArray
: Array of line numbers.i
: The array index.
OnCheckTotalStructureInSalesLineOnBeforeCheckTotalling(Record Sales Line, Boolean, Integer, Integer, Boolean) :#
Summary: Integration event raised before checking totaling in sales line structure check.
[IntegrationEvent(false, false)]
local procedure OnCheckTotalStructureInSalesLineOnBeforeCheckTotalling(var Salesline: Record "Sales Line"; CheckTotaling: Boolean; LineNoArray: Integer; var i: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnCheckTotalStructureInSalesLineOnBeforeCheckTotalling', '', false, false)]
local procedure DoSomethingOnCheckTotalStructureInSalesLineOnBeforeCheckTotalling(var Salesline: Record "Sales Line"; CheckTotaling: Boolean; LineNoArray: Integer; var i: Integer; var IsHandled: Boolean)
begin
end;
Parameters:
Salesline
: The sales line record (by reference).CheckTotaling
: Whether to check totaling.LineNoArray
: Array of line numbers.i
: The array index (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeShowPurchaseOrders(List, Boolean) :#
[IntegrationEvent(false, false)]
local procedure OnBeforeShowPurchaseOrders(var PurchaseHeaderNoList: List; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeShowPurchaseOrders', '', false, false)]
local procedure DoSomethingOnBeforeShowPurchaseOrders(var PurchaseHeaderNoList: List; var IsHandled: Boolean)
begin
end;
OnBeforeSetPricingFields(Record Sales Header, Boolean) :#
Summary: Integration event raised before setting pricing fields.
[IntegrationEvent(false, false)]
local procedure OnBeforeSetPricingFields(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeSetPricingFields', '', false, false)]
local procedure DoSomethingOnBeforeSetPricingFields(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeSearchPricingCustomer(Record Customer, Record Sales Header, Record Sales & Receivables Setup, Boolean) :#
Summary: Integration event raised before searching pricing customer.
[IntegrationEvent(false, false)]
local procedure OnBeforeSearchPricingCustomer(BilltoCustomer: Record "Customer"; var SalesHeader: Record "Sales Header"; SalesReceivablesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeSearchPricingCustomer', '', false, false)]
local procedure DoSomethingOnBeforeSearchPricingCustomer(BilltoCustomer: Record "Customer"; var SalesHeader: Record "Sales Header"; SalesReceivablesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean)
begin
end;
Parameters:
BilltoCustomer
: The bill-to customer record.SalesHeader
: The sales header record (by reference).SalesReceivablesSetup
: The sales and receivables setup record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeOnSalesHeaderTransferfieldBillToCustomer(Record Customer, Record Sales Header, Boolean) :#
Summary: Integration event raised before transferring bill-to customer fields on sales header.
[IntegrationEvent(false, false)]
local procedure OnBeforeOnSalesHeaderTransferfieldBillToCustomer(BilltoCustomer: Record "Customer"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeOnSalesHeaderTransferfieldBillToCustomer', '', false, false)]
local procedure DoSomethingOnBeforeOnSalesHeaderTransferfieldBillToCustomer(BilltoCustomer: Record "Customer"; var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
BilltoCustomer
: The bill-to customer record.SalesHeader
: The sales header record (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnAfterCalcSubTotals(Record Sales Line) :#
Summary: Event is called after the calculation of the subtotals in the sales line.
[IntegrationEvent(false, false)]
local procedure OnAfterCalcSubTotals(var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterCalcSubTotals', '', false, false)]
local procedure DoSomethingOnAfterCalcSubTotals(var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine
: The sales line record (by reference).
OnBeforeSetPaymentTermsFromSalesOrderType(Record Sales Header, Boolean) :#
Summary: Integration event raised before setting payment terms from sales order type.
[IntegrationEvent(false, false)]
local procedure OnBeforeSetPaymentTermsFromSalesOrderType(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeSetPaymentTermsFromSalesOrderType', '', false, false)]
local procedure DoSomethingOnBeforeSetPaymentTermsFromSalesOrderType(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeSetPaymentMethodFromSalesOrderType(Record Sales Header, Boolean) :#
Summary: Integration event raised before setting payment method from sales order type.
[IntegrationEvent(false, false)]
local procedure OnBeforeSetPaymentMethodFromSalesOrderType(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeSetPaymentMethodFromSalesOrderType', '', false, false)]
local procedure DoSomethingOnBeforeSetPaymentMethodFromSalesOrderType(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeGetSpecialNote(Integer, Code[20], Text[50], Boolean) :#
Summary: Integration event raised before getting special note.
[IntegrationEvent(false, false)]
local procedure OnBeforeGetSpecialNote(DatabaseInteger: Integer; No: Code[20]; var CommentTextReturn: Text[50]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeGetSpecialNote', '', false, false)]
local procedure DoSomethingOnBeforeGetSpecialNote(DatabaseInteger: Integer; No: Code[20]; var CommentTextReturn: Text[50]; var IsHandled: Boolean)
begin
end;
Parameters:
DatabaseInteger
: The database integer.No
: The number/code.CommentTextReturn
: The comment text to return (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeShowSpecialNote(Integer, Code[20], Boolean) :#
Summary: Integration event raised before showing special note.
[IntegrationEvent(false, false)]
local procedure OnBeforeShowSpecialNote(DatabaseInteger: Integer; No: Code[20]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeShowSpecialNote', '', false, false)]
local procedure DoSomethingOnBeforeShowSpecialNote(DatabaseInteger: Integer; No: Code[20]; var IsHandled: Boolean)
begin
end;
Parameters:
DatabaseInteger
: The database integer.No
: The number/code.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeOnSalesHeaderTransferfieldBillToCustomerOnCaseElseTransfSalespfromCust(Record Customer, Record Sales Header, Record Sales & Receivables Setup, Boolean) :#
Summary: Integration event raised before transferring salesperson from customer in bill-to customer case else branch.
[IntegrationEvent(false, false)]
local procedure OnBeforeOnSalesHeaderTransferfieldBillToCustomerOnCaseElseTransfSalespfromCust(BilltoCustomer: Record "Customer"; var SalesHeader: Record "Sales Header"; SalesReceivablesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeOnSalesHeaderTransferfieldBillToCustomerOnCaseElseTransfSalespfromCust', '', false, false)]
local procedure DoSomethingOnBeforeOnSalesHeaderTransferfieldBillToCustomerOnCaseElseTransfSalespfromCust(BilltoCustomer: Record "Customer"; var SalesHeader: Record "Sales Header"; SalesReceivablesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean)
begin
end;
Parameters:
BilltoCustomer
: The bill-to customer record.SalesHeader
: The sales header record (by reference).SalesReceivablesSetup
: The sales and receivables setup record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeSetAssignedUserIDOnSalesContractHeader(Record KVSKBASalesContractHeader, Boolean, Boolean) :#
Summary: Integration event raised before setting assigned user ID on sales contract header.
[IntegrationEvent(false, false)]
local procedure OnBeforeSetAssignedUserIDOnSalesContractHeader(var SalesContractHeader: Record "KVSKBASalesContractHeader"; OnInsert: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeSetAssignedUserIDOnSalesContractHeader', '', false, false)]
local procedure DoSomethingOnBeforeSetAssignedUserIDOnSalesContractHeader(var SalesContractHeader: Record "KVSKBASalesContractHeader"; OnInsert: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
SalesContractHeader
: The sales contract header record (by reference).OnInsert
: Whether this is called on insert.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeSetDefaultSalespersonOnSalesContractHeader(Record KVSKBASalesContractHeader, Boolean) :#
Summary: Integration event raised before setting default salesperson on sales contract header.
[IntegrationEvent(false, false)]
local procedure OnBeforeSetDefaultSalespersonOnSalesContractHeader(var SalesContractHeader: Record "KVSKBASalesContractHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeSetDefaultSalespersonOnSalesContractHeader', '', false, false)]
local procedure DoSomethingOnBeforeSetDefaultSalespersonOnSalesContractHeader(var SalesContractHeader: Record "KVSKBASalesContractHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesContractHeader
: The sales contract header record (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCalcServiceCharge(Record Sales Line, Boolean, Boolean) :#
Summary: Integration event raised before calculating service charge.
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcServiceCharge(var SalesLine: Record "Sales Line"; var Successful: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCalcServiceCharge', '', false, false)]
local procedure DoSomethingOnBeforeCalcServiceCharge(var SalesLine: Record "Sales Line"; var Successful: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record (by reference).Successful
: Boolean flag indicating if calculation was successful (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnAfterCalcServiceCharge(Record Sales Line) :#
Summary: Integration event raised after calculating service charge.
[IntegrationEvent(false, false)]
local procedure OnAfterCalcServiceCharge(var SalesLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterCalcServiceCharge', '', false, false)]
local procedure DoSomethingOnAfterCalcServiceCharge(var SalesLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine
: The sales line record (by reference).
OnBeforeTransferProductCommissionGroup(Variant, Record Sales Line, Code[10], Boolean) :#
Summary: Integration event raised before transferring product commission group.
[IntegrationEvent(false, false)]
local procedure OnBeforeTransferProductCommissionGroup(SourceTableVariant: Variant; var SalesLine: Record "Sales Line"; NewProductCommissionGroupCode: Code[10]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeTransferProductCommissionGroup', '', false, false)]
local procedure DoSomethingOnBeforeTransferProductCommissionGroup(SourceTableVariant: Variant; var SalesLine: Record "Sales Line"; NewProductCommissionGroupCode: Code[10]; var IsHandled: Boolean)
begin
end;
Parameters:
SourceTableVariant
: The source table variant.SalesLine
: The sales line record (by reference).NewProductCommissionGroupCode
: The new product commission group code.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeAddBundleLinesForSalesInv(Record Sales Header, Integer, Integer, Boolean) :#
Summary: Integration event raised before adding bundle lines for sales invoice.
[IntegrationEvent(false, false)]
local procedure OnBeforeAddBundleLinesForSalesInv(SalesHeader: Record "Sales Header"; FromLineNo: Integer; ToLineNo: Integer; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeAddBundleLinesForSalesInv', '', false, false)]
local procedure DoSomethingOnBeforeAddBundleLinesForSalesInv(SalesHeader: Record "Sales Header"; FromLineNo: Integer; ToLineNo: Integer; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record.FromLineNo
: The starting line number.ToLineNo
: The ending line number.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCheckCompleteDelivery(Record Sales Header, Boolean, Boolean, Boolean) :#
Summary: Integration event raised before checking complete delivery.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckCompleteDelivery(SalesHeader: Record "Sales Header"; ShowError: Boolean; var Result: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCheckCompleteDelivery', '', false, false)]
local procedure DoSomethingOnBeforeCheckCompleteDelivery(SalesHeader: Record "Sales Header"; ShowError: Boolean; var Result: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record.ShowError
: Whether to show error messages.Result
: The result of the check (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeUpdateBundleElementPrices(Record Sales Line, Record Sales Line, Boolean) :#
Summary: Integration event raised before updating bundle element prices.
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateBundleElementPrices(SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeUpdateBundleElementPrices', '', false, false)]
local procedure DoSomethingOnBeforeUpdateBundleElementPrices(SalesLine: Record "Sales Line"; xSalesLine: Record "Sales Line"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record.xSalesLine
: The previous sales line record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeSearchPricingDate(Record Sales Header, Record Customer, Record Sales & Receivables Setup, Boolean) :#
Summary: Integration event raised before searching pricing date.
[IntegrationEvent(false, false)]
local procedure OnBeforeSearchPricingDate(var SalesHeader: Record "Sales Header"; Customer: Record "Customer"; SalesReceivablesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeSearchPricingDate', '', false, false)]
local procedure DoSomethingOnBeforeSearchPricingDate(var SalesHeader: Record "Sales Header"; Customer: Record "Customer"; SalesReceivablesSetup: Record "Sales & Receivables Setup"; var IsHandled: Boolean)
begin
end;
Parameters:
SalesHeader
: The sales header record (by reference).Customer
: The customer record.SalesReceivablesSetup
: The sales and receivables setup record.IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnBeforeCheckTypeAndNoAreStatedOnSalesLine(Record Sales Line, Boolean, Boolean) :#
Summary: Integration event raised before checking if type and no are stated on sales line.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckTypeAndNoAreStatedOnSalesLine(SalesLine: Record "Sales Line"; var ReturnValue: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnBeforeCheckTypeAndNoAreStatedOnSalesLine', '', false, false)]
local procedure DoSomethingOnBeforeCheckTypeAndNoAreStatedOnSalesLine(SalesLine: Record "Sales Line"; var ReturnValue: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
SalesLine
: The sales line record.ReturnValue
: The return value of the check (by reference).IsHandled
: Boolean flag to indicate if the event has been handled (by reference).
OnAfterCheckOtherNotBillable(Record Sales Header, Record Sales Line, Code[20]) :#
Summary: Integration event raised after checking other not billable items.
[IntegrationEvent(false, false)]
local procedure OnAfterCheckOtherNotBillable(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var NotBillable: Code[20]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnAfterCheckOtherNotBillable', '', false, false)]
local procedure DoSomethingOnAfterCheckOtherNotBillable(SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line"; var NotBillable: Code[20])
begin
end;
Parameters:
SalesHeader
: The sales header record.SalesLine
: The sales line record.NotBillable
: The not billable code (by reference).
OnGetCustomerNoForSalesHeader(Record Sales Header, Code[20]) :#
Summary: Integration event raised when getting customer number for sales header.
[IntegrationEvent(false, false)]
local procedure OnGetCustomerNoForSalesHeader(SalesHeader: Record "Sales Header"; var CustomerNo: Code[20]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesLib", 'OnGetCustomerNoForSalesHeader', '', false, false)]
local procedure DoSomethingOnGetCustomerNoForSalesHeader(SalesHeader: Record "Sales Header"; var CustomerNo: Code[20])
begin
end;
Parameters:
SalesHeader
: The sales header record.CustomerNo
: The customer number to return (by reference).