Codeunit 18090675 EOS041 Sales Events Handlers

Codeunit 18090675 EOS041 Sales Events Handlers

Events

OnBeforePostSalesDocumentLines

local procedure OnBeforePostSalesDocumentLines(var SalesLine: Record "Sales Line"; SalesHeader: Record "Sales Header"; var isHandled: Boolean)

Raised on Codeunit::“Sales.-Post” event ‘OnBeforePostLines’. Allows to avoid creation of Sales Document with posting policy “No Ledger Entries” or add Sales Lines.

Parameters / Return Value

  • SalesLine Record "Sales Line"

    The Sales Line.

  • SalesHeader Record "Sales Header"

    The Sales Header.

  • isHandled Boolean

    The Handled parameter.


OnBeforeProcessSalesInvoiceLines

local procedure OnBeforeProcessSalesInvoiceLines(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header"; var SalesLine: Record "Sales Line"; var isHandled: Boolean)

Raised after the creation of the Sales Invoice Header from the SalesHeader, allows to create a custom Sales Line processor.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    The Sales Header.

  • SalesInvHeader Record "Sales Invoice Header"

    The Sales Invoice Header.

  • SalesLine Record "Sales Line"

    The Sales Line.

  • isHandled Boolean

    The Handled parameter.


OnBeforeProcessSalesLineAsSalesInvLine

local procedure OnBeforeProcessSalesLineAsSalesInvLine(var SalesLine: Record "Sales Line"; var isHandled: Boolean)

Raised before processing a single Sales Lines as a Sales Invoice Line.

Parameters / Return Value

  • SalesLine Record "Sales Line"

    The Sales Line.

  • isHandled Boolean

    The Handled parameter.


OnAfterInsertSalesInvLine

local procedure OnAfterInsertSalesInvLine(SalesInvHeader: Record "Sales Invoice Header"; var SalesInvLine: Record "Sales Invoice Line"; SalesLine: Record "Sales Line")

Raised after the insert of a Sales Invoice Line based the Sales Line.

Parameters / Return Value

  • SalesInvHeader Record "Sales Invoice Header"

    The Sales Invoice Header.

  • SalesInvLine Record "Sales Invoice Line"

    The Sales Invoice Line.

  • SalesLine Record "Sales Line"

    The Sales Line.


OnAfterProcessSalesInvoiceLines

local procedure OnAfterProcessSalesInvoiceLines(var SalesInvHeader: Record "Sales Invoice Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line")

Raised after the creation of all the Sales Invoice Lines. The Sales Invoice has been completely created.

Parameters / Return Value

  • SalesInvHeader Record "Sales Invoice Header"

    The Sales Invoice Header.

  • SalesHeader Record "Sales Header"

    The source Sales Header.

  • SalesLine Record "Sales Line"

    The source Sales Lines.


OnBeforeProcessSalesCrMemoLines

local procedure OnBeforeProcessSalesCrMemoLines(SalesHeader: Record "Sales Header"; var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesLine: Record "Sales Line"; var isHandled: Boolean)

Raised after the creation of the Sales Cr. Memo Header from the SalesHeader, allows to create a custom Sales Line processor.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    The Sales Header.

  • SalesCrMemoHeader Record "Sales Cr.Memo Header"

    The Sales Cr. Memo Header.

  • SalesLine Record "Sales Line"

    The Sales Line.

  • isHandled Boolean

    The Handled parameter.


OnBeforeProcessSalesLineAsSalesCrMemoLine

local procedure OnBeforeProcessSalesLineAsSalesCrMemoLine(var SalesLine: Record "Sales Line"; var isHandled: Boolean)

Raised before processing a single Sales Lines as a Sales Cr. Memo Line.

Parameters / Return Value

  • SalesLine Record "Sales Line"

    The Sales Line.

  • isHandled Boolean

    The Handled parameter.


OnAfterInsertSalesCrMemoLine

local procedure OnAfterInsertSalesCrMemoLine(SalesCrMemoHeader: Record "Sales Cr.Memo Header"; var SalesCrMemoLine: Record "Sales Cr.Memo Line"; SalesLine: Record "Sales Line")

Raised after the insert of a Sales Cr. Memo Line based the Sales Line.

Parameters / Return Value

  • SalesCrMemoHeader Record "Sales Cr.Memo Header"

    The Sales Invoice Header.

  • SalesCrMemoLine Record "Sales Cr.Memo Line"

    The Sales Invoice Line.

  • SalesLine Record "Sales Line"

    The Sales Line.


OnAfterProcessSalesCrMemoLines

local procedure OnAfterProcessSalesCrMemoLines(var SalesCrMemoHeader: Record "Sales Cr.Memo Header"; SalesHeader: Record "Sales Header"; SalesLine: Record "Sales Line")

Raised after the creation of all the Sales Cr. Memo Lines. The Sales Cr. Memo has been completely created.

Parameters / Return Value

  • SalesCrMemoHeader Record "Sales Cr.Memo Header"

    The Sales Cr. Memo Header.

  • SalesHeader Record "Sales Header"

    The source Sales Header.

  • SalesLine Record "Sales Line"

    The source Sales Lines.


OnBeforeInsertSalesInvHeader

local procedure OnBeforeInsertSalesInvHeader(var SalesHeader: Record "Sales Header"; var isHandled: Boolean)

Raised before processing the Sales Header.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    The Sales Header.

  • isHandled Boolean

    The Handled parameter.


OnAfterInsertSalesInvHeader

local procedure OnAfterInsertSalesInvHeader(SalesHeader: Record "Sales Header"; var SalesInvHeader: Record "Sales Invoice Header")

Raised after the creation of the Sales Invoice Header.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    The Sales Header.

  • SalesInvHeader Record "Sales Invoice Header"

    The Sales Invoice Header.


OnBeforeInsertSalesCrMemoHeader

local procedure OnBeforeInsertSalesCrMemoHeader(var SalesHeader: Record "Sales Header"; var isHandled: Boolean)

Raised before processing the Sales Header.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    The Sales Header.

  • isHandled Boolean

    The Handled parameter.


OnAfterInsertSalesCrMemoHeader

local procedure OnAfterInsertSalesCrMemoHeader(SalesHeader: Record "Sales Header"; var SalesCrMemoHdr: Record "Sales Cr.Memo Header")

Raised after the creation of the Sales. Cr. Memo.

Parameters / Return Value

  • SalesHeader Record "Sales Header"

    The Sales Header.

  • SalesCrMemoHdr Record "Sales Cr.Memo Header"

    The Sales Cr. Header.



EOS Labs -