KVSKBASalesPostLib#
Procedures#
ShowOrderFlowEntryInLines(Record Sales Line Archive) :#
Summary: Displays order flow entries for an archived sales line.
procedure ShowOrderFlowEntryInLines(SalesLineArchive: Record "Sales Line Archive"):
Parameters:
SalesLineArchive: The archived sales line to show flow entries for
Remarks: This procedure opens a modal page showing all order flow entries linked to the specified archived sales line. It filters entries by order table number (Sales Line), document type, document number, and line number. Order flow entries track the lifecycle and processing history of sales lines through various stages. Useful for reviewing the complete history of a sales line after it has been archived, including processing steps, status changes, and related transactions.
CalcSubTotalsTab5108(Record Sales Line Archive) :#
Summary: Calculates subtotals for archived sales line totaling types.
procedure CalcSubTotalsTab5108(var SalesLineArchive: Record "Sales Line Archive"):
Parameters:
SalesLineArchive: The archived sales line to calculate subtotals for
Remarks: This procedure recalculates line amounts for archived sales lines with totaling types (Subtotal, Bundle, End Subtotal/Bundle). For lines with empty totaling filters, the line amount is set to zero. For lines with totaling filters, it calculates the subtotal by summing all related lines and updates the Line Amount field. The OnAfterCalcSubTotalsSalesLineArchive event allows post-calculation adjustments. This ensures correct totaling calculations in archived documents for reporting and review purposes.
CalcSubTotalsTab113(Record Sales Invoice Line) :#
Summary: Calculates subtotals for posted sales invoice line totaling types.
procedure CalcSubTotalsTab113(var SalesInvoiceLine: Record "Sales Invoice Line"):
Parameters:
SalesInvoiceLine: The posted sales invoice line to calculate subtotals for
Remarks: This procedure recalculates line amounts for posted invoice lines with totaling types (Subtotal, Bundle, End Subtotal/Bundle). For lines with empty totaling filters, the line amount is set to zero. For lines with totaling filters, it calculates the subtotal by summing all related lines and updates the Line Amount field. The OnAfterCalcSubTotalsSalesInvoiceLine event allows post-calculation adjustments. This ensures correct totaling calculations in posted invoices for accurate financial reporting and document presentation.
CalcSubTotalsTab115(Record Sales Cr.Memo Line) :#
Summary: Calculates subtotals for posted sales credit memo line totaling types.
procedure CalcSubTotalsTab115(var SalesCrMemoLine: Record "Sales Cr.Memo Line"):
Parameters:
SalesCrMemoLine: The posted sales credit memo line to calculate subtotals for
Remarks: This procedure recalculates line amounts for posted credit memo lines with totaling types (Subtotal, Bundle, End Subtotal/Bundle). For lines with empty totaling filters, the line amount is set to zero. For lines with totaling filters, it calculates the subtotal by summing all related lines and updates the Line Amount field. The OnAfterCalcSubTotalsSalesCrMemoLine event allows post-calculation adjustments. This ensures correct totaling calculations in posted credit memos for accurate financial reporting and document presentation.
SalesShptLinesInTotals(Record Sales Shipment Line) : Boolean#
Summary: Checks if posted sales shipment lines are included in subtotals or bundles.
procedure SalesShptLinesInTotals(var SalesShipmentLine: Record "Sales Shipment Line"): Boolean
Parameters:
SalesShipmentLine: The posted shipment line to check
Returns: True if the line is within subtotal/bundle boundaries, false otherwise
Remarks: This procedure evaluates whether a shipment line is included in a subtotal or bundle calculation by checking for totaling lines (Subtotal, Bundle) before and after the current line. It searches backwards for a starting totaling line and forwards for an ending totaling line (End Subtotal/Bundle). Returns true only if both boundaries exist and the line is within the defined range. Used for filtering and displaying lines that belong to subtotal or bundle groups, helping maintain document structure in reports and list pages.
SalesInvLinesInTotals(Record Sales Invoice Line) : Boolean#
Summary: Checks if posted sales invoice lines are included in subtotals or bundles.
procedure SalesInvLinesInTotals(var SalesInvoiveLine: Record "Sales Invoice Line"): Boolean
Parameters:
SalesInvoiveLine: The posted invoice line to check
Returns: True if the line is within subtotal/bundle boundaries, false otherwise
Remarks: This procedure evaluates whether an invoice line is included in a subtotal or bundle calculation by checking for totaling lines (Subtotal, Bundle) before and after the current line. It searches backwards for a starting totaling line and forwards for an ending totaling line (End Subtotal/Bundle). Returns true only if both boundaries exist and the line is within the defined range. Used for filtering and displaying lines that belong to subtotal or bundle groups, helping maintain document structure in reports and list pages.
SalesCrMemoLinesInTotals(Record Sales Cr.Memo Line) : Boolean#
Summary: Checks if posted sales credit memo lines are included in subtotals or bundles.
procedure SalesCrMemoLinesInTotals(var SalesCrMemoLine: Record "Sales Cr.Memo Line"): Boolean
Parameters:
SalesCrMemoLine: The posted credit memo line to check
Returns: True if the line is within subtotal/bundle boundaries, false otherwise
Remarks: This procedure evaluates whether a credit memo line is included in a subtotal or bundle calculation by checking for totaling lines (Subtotal, Bundle) before and after the current line. It searches backwards for a starting totaling line and forwards for an ending totaling line (End Subtotal/Bundle). Returns true only if both boundaries exist and the line is within the defined range. Used for filtering and displaying lines that belong to subtotal or bundle groups, helping maintain document structure in reports and list pages.
ReturnRcptLinesInTotals(Record Return Receipt Line) : Boolean#
Summary: Checks if posted return receipt lines are included in subtotals or bundles.
procedure ReturnRcptLinesInTotals(var ReturnReceiptLine: Record "Return Receipt Line"): Boolean
Parameters:
ReturnReceiptLine: The posted return receipt line to check
Returns: True if the line is within subtotal/bundle boundaries, false otherwise
Remarks: This procedure evaluates whether a return receipt line is included in a subtotal or bundle calculation by checking for totaling lines (Subtotal, Bundle) before and after the current line. It searches backwards for a starting totaling line and forwards for an ending totaling line (End Subtotal/Bundle). Returns true only if both boundaries exist and the line is within the defined range. Used for filtering and displaying lines that belong to subtotal or bundle groups, helping maintain document structure in reports and list pages.
ArchSalesLinesInTotals(Record Sales Line Archive) : Boolean#
Summary: Checks if archived sales lines are included in subtotals or bundles.
procedure ArchSalesLinesInTotals(var SalesLineArchive: Record "Sales Line Archive"): Boolean
Parameters:
SalesLineArchive: The archived sales line to check
Returns: True if the line is within subtotal/bundle boundaries, false otherwise
Remarks: This procedure evaluates whether an archived sales line is included in a subtotal or bundle calculation by checking for totaling lines (Subtotal, Bundle) before and after the current line. It searches backwards for a starting totaling line and forwards for an ending totaling line (End Subtotal/Bundle). Returns true only if both boundaries exist and the line is within the defined range. Used for filtering and displaying lines that belong to subtotal or bundle groups, helping maintain document structure in reports and list pages for archived documents.
DeleteAddedTablesTab110(Record Sales Shipment Header) :#
Summary: Deletes all KUMAVISION base-specific records related to a posted sales shipment.
procedure DeleteAddedTablesTab110(SalesShipmentHeader: Record "Sales Shipment Header"):
Parameters:
SalesShipmentHeader: The posted sales shipment header for which to delete related records
Remarks: This procedure deletes all KUMAVISION extension records (Added Tables) associated with a posted sales shipment, specifically document text lines. It deletes Posted Sales Document Text records for both header and line level using the document type (Shipment) and document number as filters. Used during shipment deletion or cleanup operations to ensure all related KUMAVISION data is removed cleanly and to maintain referential integrity across the database.
ShowSalesDocTextArchLines(Enum Sales Document Type, Code[20], Integer, Integer, Integer, Enum KVSKBATextPosition) :#
procedure ShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"):
DoShowSalesDocTextArchLines(Enum Sales Document Type, Code[20], Integer, Integer, Integer, Enum KVSKBATextPosition, Boolean) :#
procedure DoShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; TextPosition: Enum "KVSKBATextPosition"; IsHandled: Boolean):
CalcNoOfSalesDocArchTextLines(Option, Code[20], Integer, Integer, Integer, Enum KVSKBATextPosition) : Integer#
Summary: Calculates the number of archived document text lines for a sales document archive.
procedure CalcNoOfSalesDocArchTextLines(DocType: Option; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; TextPosition: Enum "KVSKBATextPosition"): Integer
Parameters:
DocType: The type of archived sales documentDocNo: The document numberDocNoOcc: The document number occurrenceVersionNo: The archive version numberDocLineNo: The line number filter (0 for header-level texts)TextPosition: The text position filter
Returns: The number of archived document text lines matching the specified filters
Remarks: This function returns the count of archived document text lines for a specified sales document archive based on document type, number, occurrence, version, line number, and text position. It is used in factboxes on pages related to archived sales headers and lines to display the number of associated text lines. This helps users quickly see how many notes or texts are linked to a particular archived sales document at specific positions.
ShowPostSalesDocTextLines(Enum KVSKBAPostedSalesDocTextType, Code[20], Integer, Enum KVSKBATextPosition) :#
Summary: Shows posted document text lines for a posted sales document.
procedure ShowPostSalesDocTextLines(PostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; TextPosition: Enum "KVSKBATextPosition"):
Parameters:
PostedSalesDocTextType: The type of posted document (Shipment, Invoice, Credit Memo, Return Receipt)DocNo: The document number of the posted documentDocLineNo: Optional line number to filter document texts (0 for header-level texts)TextPosition: The text position filter (e.g., Before, After, End)
Remarks: This procedure displays document text lines for a posted sales document. It supports all posted document types and can show texts for both header-level (DocLineNo = 0) and line-level at specific text positions. Raises obsolete events (OnBeforeShowPostSalesDocTextLines and OnAfterShowPostSalesDocTextLines) for backward compatibility. The actual display is handled by DoShowPostSalesDocTextLines. Allows users to view document-specific texts and notes attached to posted documents at specific positions.
DoShowPostSalesDocTextLines(Enum KVSKBAPostedSalesDocTextType, Code[20], Integer, Enum KVSKBATextPosition, Boolean) :#
Summary: Displays the posted document text lines in a modal page.
procedure DoShowPostSalesDocTextLines(PostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; IsHandled: Boolean):
Parameters:
PostedSalesDocTextType: The type of posted document (Shipment, Invoice, Credit Memo, Return Receipt)DocNo: The document number of the posted documentDocLineNo: The line number filter (0 for header-level texts)KVSKBATextPosition: The text position filterIsHandled: Indicates if the operation has been handled by an extension
Remarks: This procedure opens the Posted Sales Document Text page in modal mode after applying filters.
CalcNoOfPostSalesDocTextLines(Option, Code[20], Integer, Enum KVSKBATextPosition) : Integer#
Summary: Calculates the number of posted document text lines for a posted sales document.
procedure CalcNoOfPostSalesDocTextLines(DocType: Option; DocNo: Code[20]; DocLineNo: Integer; TextPosition: Enum "KVSKBATextPosition"): Integer
Parameters:
DocType: The type of posted document (Shipment, Invoice, Credit Memo, Return Receipt)DocNo: The document number of the posted documentDocLineNo: The line number filter (0 for header-level texts)TextPosition: The text position filter
Returns: The number of posted document text lines matching the specified filters
Remarks: This function returns the count of posted document text lines for a specified posted sales document after applying the given filters.
OnAfterShowSalesDocTextArchLines(Enum Sales Document Type, Code[20], Integer, Integer, Integer, Enum KVSKBATextPosition) :#
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. This does only affect procedure caller not subscribers. The event remains in place.', '26.4')]
[IntegrationEvent(false, false)]
procedure OnAfterShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnAfterShowSalesDocTextArchLines', '', false, false)]
local procedure DoSomethingOnAfterShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition")
begin
end;
OnAfterShowPostSalesDocTextLines(Enum KVSKBAPostedSalesDocTextType, Code[20], Integer, Enum KVSKBATextPosition) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Event raised after showing posted sales document text lines.
[Obsolete('Not intended for public use. Will be internal in future releases. This does only affect procedure caller not subscribers. The event remains in place.', '26.4')]
[IntegrationEvent(false, false)]
procedure OnAfterShowPostSalesDocTextLines(KVSKBAPostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnAfterShowPostSalesDocTextLines', '', false, false)]
local procedure DoSomethingOnAfterShowPostSalesDocTextLines(KVSKBAPostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition")
begin
end;
Parameters:
KVSKBAPostedSalesDocTextType: The type of posted document (Shipment, Invoice, Credit Memo, Return Receipt)DocNo: The document number of the posted documentDocLineNo: Optional line number to filter document texts (0 for header-level texts)KVSKBATextPosition: The text position filter (e.g., Before, After, End)
Remarks: It is raised after showing posted sales document text lines.
OnBeforeShowSalesDocTextArchLines(Enum Sales Document Type, Code[20], Integer, Integer, 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. This does only affect procedure caller not subscribers. The event remains in place.', '26.4')]
[IntegrationEvent(false, false)]
procedure OnBeforeShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnBeforeShowSalesDocTextArchLines', '', false, false)]
local procedure DoSomethingOnBeforeShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean)
begin
end;
OnBeforeShowPostSalesDocTextLines(Enum KVSKBAPostedSalesDocTextType, Code[20], Integer, Enum KVSKBATextPosition, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Event raised before showing posted sales document text lines.
[Obsolete('Not intended for public use. Will be internal in future releases. This does only affect procedure caller not subscribers. The event remains in place.', '26.4')]
[IntegrationEvent(false, false)]
procedure OnBeforeShowPostSalesDocTextLines(KVSKBAPostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnBeforeShowPostSalesDocTextLines', '', false, false)]
local procedure DoSomethingOnBeforeShowPostSalesDocTextLines(KVSKBAPostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean)
begin
end;
Parameters:
KVSKBAPostedSalesDocTextType: The type of posted document (Shipment, Invoice, Credit Memo, Return Receipt)DocNo: The document number of the posted documentDocLineNo: Optional line number to filter document texts (0 for header-level texts)KVSKBATextPosition: The text position filter (e.g., Before, After, End)IsHandled: Indicates if the operation has been handled by an extension
Remarks: It is raised before showing posted sales document text lines.
Events#
OnAfterShowSalesDocTextArchLines(Enum Sales Document Type, Code[20], Integer, Integer, Integer, Enum KVSKBATextPosition) :#
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. This does only affect procedure caller not subscribers. The event remains in place.', '26.4')]
[IntegrationEvent(false, false)]
procedure OnAfterShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnAfterShowSalesDocTextArchLines', '', false, false)]
local procedure DoSomethingOnAfterShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition")
begin
end;
OnAfterShowPostSalesDocTextLines(Enum KVSKBAPostedSalesDocTextType, Code[20], Integer, Enum KVSKBATextPosition) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Event raised after showing posted sales document text lines.
[Obsolete('Not intended for public use. Will be internal in future releases. This does only affect procedure caller not subscribers. The event remains in place.', '26.4')]
[IntegrationEvent(false, false)]
procedure OnAfterShowPostSalesDocTextLines(KVSKBAPostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnAfterShowPostSalesDocTextLines', '', false, false)]
local procedure DoSomethingOnAfterShowPostSalesDocTextLines(KVSKBAPostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition")
begin
end;
Parameters:
KVSKBAPostedSalesDocTextType: The type of posted document (Shipment, Invoice, Credit Memo, Return Receipt)DocNo: The document number of the posted documentDocLineNo: Optional line number to filter document texts (0 for header-level texts)KVSKBATextPosition: The text position filter (e.g., Before, After, End)
Remarks: It is raised after showing posted sales document text lines.
OnBeforeShowSalesDocTextArchLines(Enum Sales Document Type, Code[20], Integer, Integer, 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. This does only affect procedure caller not subscribers. The event remains in place.', '26.4')]
[IntegrationEvent(false, false)]
procedure OnBeforeShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnBeforeShowSalesDocTextArchLines', '', false, false)]
local procedure DoSomethingOnBeforeShowSalesDocTextArchLines(SalesDocumentType: Enum "Sales Document Type"; DocNo: Code[20]; DocNoOcc: Integer; VersionNo: Integer; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean)
begin
end;
OnBeforeShowPostSalesDocTextLines(Enum KVSKBAPostedSalesDocTextType, Code[20], Integer, Enum KVSKBATextPosition, Boolean) :#
Obsolete
This Element will be removed or changed with a future Version of the App.
Summary: Event raised before showing posted sales document text lines.
[Obsolete('Not intended for public use. Will be internal in future releases. This does only affect procedure caller not subscribers. The event remains in place.', '26.4')]
[IntegrationEvent(false, false)]
procedure OnBeforeShowPostSalesDocTextLines(KVSKBAPostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnBeforeShowPostSalesDocTextLines', '', false, false)]
local procedure DoSomethingOnBeforeShowPostSalesDocTextLines(KVSKBAPostedSalesDocTextType: Enum "KVSKBAPostedSalesDocTextType"; DocNo: Code[20]; DocLineNo: Integer; KVSKBATextPosition: Enum "KVSKBATextPosition"; var IsHandled: Boolean)
begin
end;
Parameters:
KVSKBAPostedSalesDocTextType: The type of posted document (Shipment, Invoice, Credit Memo, Return Receipt)DocNo: The document number of the posted documentDocLineNo: Optional line number to filter document texts (0 for header-level texts)KVSKBATextPosition: The text position filter (e.g., Before, After, End)IsHandled: Indicates if the operation has been handled by an extension
Remarks: It is raised before showing posted sales document text lines.
OnAfterCalcSubTotalsSalesLineArchive(Record Sales Line Archive) :#
Summary: Event raised after calculating subtotals for an archived sales line.
[IntegrationEvent(false, false)]
local procedure OnAfterCalcSubTotalsSalesLineArchive(var SalesLineArchive: Record "Sales Line Archive"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnAfterCalcSubTotalsSalesLineArchive', '', false, false)]
local procedure DoSomethingOnAfterCalcSubTotalsSalesLineArchive(var SalesLineArchive: Record "Sales Line Archive")
begin
end;
Parameters:
SalesLineArchive: The archived sales line with calculated subtotals
Remarks: This integration event allows extensions to perform additional processing or adjustments after subtotal calculations for archived sales lines with totaling types. Subscribe to this event to modify line amounts, apply custom calculations, or perform additional updates based on the calculated subtotals. Useful for implementing custom totaling logic or additional business rules for archived sales documents.
OnAfterCalcSubTotalsSalesInvoiceLine(Record Sales Invoice Line) :#
Summary: Event raised after calculating subtotals for a posted sales invoice line.
[IntegrationEvent(false, false)]
local procedure OnAfterCalcSubTotalsSalesInvoiceLine(var SalesInvoiceLine: Record "Sales Invoice Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnAfterCalcSubTotalsSalesInvoiceLine', '', false, false)]
local procedure DoSomethingOnAfterCalcSubTotalsSalesInvoiceLine(var SalesInvoiceLine: Record "Sales Invoice Line")
begin
end;
Parameters:
SalesInvoiceLine: The posted invoice line with calculated subtotals
Remarks: This integration event allows extensions to perform additional processing or adjustments after subtotal calculations for posted invoice lines with totaling types. Subscribe to this event to modify line amounts, apply custom calculations, or perform additional updates based on the calculated subtotals. Useful for implementing custom totaling logic or additional business rules for posted sales invoices.
OnAfterCalcSubTotalsSalesCrMemoLine(Record Sales Cr.Memo Line) :#
Summary: Event raised after calculating subtotals for a posted sales credit memo line.
[IntegrationEvent(false, false)]
local procedure OnAfterCalcSubTotalsSalesCrMemoLine(var SalesCrMemoLine: Record "Sales Cr.Memo Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnAfterCalcSubTotalsSalesCrMemoLine', '', false, false)]
local procedure DoSomethingOnAfterCalcSubTotalsSalesCrMemoLine(var SalesCrMemoLine: Record "Sales Cr.Memo Line")
begin
end;
Parameters:
SalesCrMemoLine: The posted credit memo line with calculated subtotals
Remarks: This integration event allows extensions to perform additional processing or adjustments after subtotal calculations for posted credit memo lines with totaling types. Subscribe to this event to modify line amounts, apply custom calculations, or perform additional updates based on the calculated subtotals. Useful for implementing custom totaling logic or additional business rules for posted sales credit memos.
OnTransferfieldsInGetShipment(Record Sales Line, Record Sales Line) :#
Summary: Event raised when transferring fields during Get Shipment Lines operation.
[IntegrationEvent(false, false)]
local procedure OnTransferfieldsInGetShipment(var SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnTransferfieldsInGetShipment', '', false, false)]
local procedure DoSomethingOnTransferfieldsInGetShipment(var SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine: The target invoice sales line receiving the field valuesSalesOrderLine: The source order sales line providing the field values
Remarks: This integration event allows extensions to transfer additional custom fields when getting shipment lines into an invoice. Subscribe to this event to transfer extension-specific fields from the original order line to the invoice line. Called after standard KUMAVISION field transfers (Price Unit, Not Billable) have been completed. Essential for maintaining custom data integrity across the Get Shipment Lines process.
OnTransferfieldsInGetReturnRcpt(Record Sales Line, Record Sales Line) :#
Summary: Event raised when transferring fields during Get Return Receipt Lines operation.
[IntegrationEvent(false, false)]
local procedure OnTransferfieldsInGetReturnRcpt(var SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBASalesPostLib", 'OnTransferfieldsInGetReturnRcpt', '', false, false)]
local procedure DoSomethingOnTransferfieldsInGetReturnRcpt(var SalesLine: Record "Sales Line"; SalesOrderLine: Record "Sales Line")
begin
end;
Parameters:
SalesLine: The target credit memo sales line receiving the field valuesSalesOrderLine: The source return order sales line providing the field values
Remarks: This integration event allows extensions to transfer additional custom fields when getting return receipt lines into a credit memo. Subscribe to this event to transfer extension-specific fields from the original return order line to the credit memo line. Called after standard KUMAVISION field transfers (Price Unit, Not Billable) have been completed. Essential for maintaining custom data integrity across the Get Return Receipt Lines process.