Codeunit 18090676 EOS041 Purch. Event Handlers

Codeunit 18090676 EOS041 Purch. Event Handlers

Events

OnBeforePostPurchaseDocumentLines

local procedure OnBeforePostPurchaseDocumentLines(var PurchLine: Record "Purchase Line"; PurchHeader: Record "Purchase Header"; var isHandled: Boolean)

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

Parameters / Return Value

  • PurchLine Record "Purchase Line"

    The Purchase Line.

  • PurchHeader Record "Purchase Header"

    The Purchase Header.

  • isHandled Boolean

    The Handled parameter.


OnBeforeProcessPurchInvoiceLines

local procedure OnBeforeProcessPurchInvoiceLines(PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header"; var PurchLine: Record "Purchase Line"; var isHandled: Boolean)

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

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    The Purchase Header.

  • PurchInvHeader Record "Purch. Inv. Header"

    The Purchase Invoice Header.

  • PurchLine Record "Purchase Line"

    The Purchase Line.

  • isHandled Boolean

    The Handled parameter.


OnBeforeProcessPurchLineAsPurchInvLine

local procedure OnBeforeProcessPurchLineAsPurchInvLine(var PurchLine: Record "Purchase Line"; var isHandled: Boolean)

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

Parameters / Return Value

  • PurchLine Record "Purchase Line"

    The Purchase Line.

  • isHandled Boolean

    The Handled parameter.


OnAfterInsertPurchInvLine

local procedure OnAfterInsertPurchInvLine(PurchInvHeader: Record "Purch. Inv. Header"; var PurchInvLine: Record "Purch. Inv. Line"; PurchLine: Record "Purchase Line")

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

Parameters / Return Value

  • PurchInvHeader Record "Purch. Inv. Header"

    The Purchase Invoice Header.

  • PurchInvLine Record "Purch. Inv. Line"

    The Purchase Invoice Line.

  • PurchLine Record "Purchase Line"

    The Purchase Line.


OnAfterProcessPurchInvoiceLines

local procedure OnAfterProcessPurchInvoiceLines(var PurchInvHeader: Record "Purch. Inv. Header"; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line")

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

Parameters / Return Value

  • PurchInvHeader Record "Purch. Inv. Header"

    The Purchase Invoice Header.

  • PurchHeader Record "Purchase Header"

    The source Purchase Header.

  • PurchLine Record "Purchase Line"

    The source Purchase Lines.


OnBeforeProcessPurchCrMemoLines

local procedure OnBeforeProcessPurchCrMemoLines(PurchHeader: Record "Purchase Header"; var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchLine: Record "Purchase Line"; var isHandled: Boolean)

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

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    The Purchase Header.

  • PurchCrMemoHeader Record "Purch. Cr. Memo Hdr."

    The Purchase Cr. Memo Header.

  • PurchLine Record "Purchase Line"

    The Purchase Line.

  • isHandled Boolean

    The Handled parameter.


OnBeforeProcessPurchLineAsPurchCrMemoLine

local procedure OnBeforeProcessPurchLineAsPurchCrMemoLine(var PurchLine: Record "Purchase Line"; var isHandled: Boolean)

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

Parameters / Return Value

  • PurchLine Record "Purchase Line"

    The Purchase Line.

  • isHandled Boolean

    The Handled parameter.


OnAfterInsertPurchCrMemoLine

local procedure OnAfterInsertPurchCrMemoLine(PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; var PurchCrMemoLine: Record "Purch. Cr. Memo Line"; PurchLine: Record "Purchase Line")

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

Parameters / Return Value

  • PurchCrMemoHeader Record "Purch. Cr. Memo Hdr."

    The Purchase Invoice Header.

  • PurchCrMemoLine Record "Purch. Cr. Memo Line"

    The Purchase Invoice Line.

  • PurchLine Record "Purchase Line"

    The Purchase Line.


OnAfterProcessPurchCrMemoLines

local procedure OnAfterProcessPurchCrMemoLines(var PurchCrMemoHeader: Record "Purch. Cr. Memo Hdr."; PurchHeader: Record "Purchase Header"; PurchLine: Record "Purchase Line")

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

Parameters / Return Value

  • PurchCrMemoHeader Record "Purch. Cr. Memo Hdr."

    The Purchase Cr. Memo Header.

  • PurchHeader Record "Purchase Header"

    The source Purchase Header.

  • PurchLine Record "Purchase Line"

    The source Purchase Lines.


OnBeforeInsertPurchInvHeader

local procedure OnBeforeInsertPurchInvHeader(var PurchHeader: Record "Purchase Header"; var isHandled: Boolean)

Raised before processing the Purchase Header.

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    The Purchase Header.

  • isHandled Boolean

    The Handled parameter.


OnAfterInsertPurchInvHeader

local procedure OnAfterInsertPurchInvHeader(PurchHeader: Record "Purchase Header"; var PurchInvHeader: Record "Purch. Inv. Header")

Raised after the creation of the Purchase Invoice Header.

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    The Purchase Header.

  • PurchInvHeader Record "Purch. Inv. Header"

    The Purchase Invoice Header.


OnBeforeInsertPurchCrMemoHeader

local procedure OnBeforeInsertPurchCrMemoHeader(var PurchHeader: Record "Purchase Header"; var isHandled: Boolean)

Raised before processing the Purchase Header.

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    The Purchase Header.

  • isHandled Boolean

    The Handled parameter.


OnAfterInsertPurchCrMemoHeader

local procedure OnAfterInsertPurchCrMemoHeader(PurchHeader: Record "Purchase Header"; var PurchCrMemoHdr: Record "Purch. Cr. Memo Hdr.")

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

Parameters / Return Value

  • PurchHeader Record "Purchase Header"

    The Purchase Header.

  • PurchCrMemoHdr Record "Purch. Cr. Memo Hdr."

    The Purchase Cr. Header.



EOS Labs -