Codeunit 18059993 EOS Purch. Snapshot-Post Line

Codeunit 18059993 EOS Purch. Snapshot-Post Line

Methods

Post

procedure Post(PurchaseDocumentType: Enum "EOS Purchase Document Type"; DocumentNo: Code[20])

The function to post document purchase document and create Purchase Snapshots

Parameters / Return Value

  • PurchaseDocumentType Enum "EOS Purchase Document Type"

    The document type as Enum “EOS Purchase Document Type”

  • DocumentNo Code[20]

    The document no.


PostIfAutomatic

procedure PostIfAutomatic(DocumentType: Enum "EOS Purchase Document Type"; DocumentNo: Code[20])

The function to create purchase snapshots. This will post the snapshot only, if automatic snapshot posting is enabled.

Parameters / Return Value

  • DocumentType Enum "EOS Purchase Document Type"

    The document type for which to post the snapshots.

  • DocumentNo Code[20]

    The document no.


Post

procedure Post(PurchaseDocumentType: Enum "EOS Purchase Document Type"; DocumentNo: Code[20]; Force: Boolean)

The function to post document purchase document and create Purchase Snapshots

Parameters / Return Value

  • PurchaseDocumentType Enum "EOS Purchase Document Type"

    The document type as Enum “EOS Purchase Document Type”

  • DocumentNo Code[20]

    The document no.

  • Force Boolean

    If this is set to true, the snapshot is posted regardless of any setups.


DeletePurchaseOrderEntries

procedure DeletePurchaseOrderEntries(PurchaseHeader: Record "Purchase Header")

This function deletes purchase snapshots if nothing has been received or invoiced

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    The purchase document to filter


DeletePurchaseOrderEntries2

procedure DeletePurchaseOrderEntries2(PurchaseHeader: Record "Purchase Header")

This function deletes purchase snapshots if nothing has been received or invoiced

Parameters / Return Value

  • PurchaseHeader Record "Purchase Header"

    The purchase document to filter


Events

OnAfterCopyFromItemCharge

local procedure OnAfterCopyFromItemCharge(PurchaseDocumentType: Enum "EOS Purchase Document Type"; var PurchaseSnapshot: Record "EOS Purchase Snapshot"; ValueEntry: Record "Value Entry")

This event is raised before insert Purchase Snapshot. You can insert value from Value Entry record

Parameters / Return Value

  • PurchaseDocumentType Enum "EOS Purchase Document Type"

    The document type as Enum “EOS Purchase Document Type”

  • PurchaseSnapshot Record "EOS Purchase Snapshot"

    The Purchase Snapshot record

  • ValueEntry Record "Value Entry"

    The Value Entry record


OnAfterCopyFromItem

local procedure OnAfterCopyFromItem(PurchaseDocumentType: Enum "EOS Purchase Document Type"; var PurchaseSnapshot: Record "EOS Purchase Snapshot"; Item: Record Item)

This event is raised before insert Purchase Snapshot. You can insert value from Item record

Parameters / Return Value

  • PurchaseDocumentType Enum "EOS Purchase Document Type"

    The document type as Enum “EOS Purchase Document Type”

  • PurchaseSnapshot Record "EOS Purchase Snapshot"

    The Purchase Snapshot record

  • Item Record "Item"

    The Item record


OnBeforeInsertSnapshot

local procedure OnBeforeInsertSnapshot(PurchaseDocumentType: Enum "EOS Purchase Document Type"; var PurchaseSnapshot: Record "EOS Purchase Snapshot"; Vendor: Record Vendor)

This event is raised before insert Purchase Snapshot. You can insert value from Vendor record

Parameters / Return Value

  • PurchaseDocumentType Enum "EOS Purchase Document Type"

    The document type as Enum “EOS Purchase Document Type”

  • PurchaseSnapshot Record "EOS Purchase Snapshot"

    The Purchase Snapshot record

  • Vendor Record "Vendor"

    The Vendor record


OnAfterInsertSnapshot

local procedure OnAfterInsertSnapshot(PurchaseDocumentType: Enum "EOS Purchase Document Type"; var PurchaseSnapshot: Record "EOS Purchase Snapshot")

This event is raised after insert Purchase Snapshot.

Parameters / Return Value

  • PurchaseDocumentType Enum "EOS Purchase Document Type"

    The document type as Enum “EOS Purchase Document Type”

  • PurchaseSnapshot Record "EOS Purchase Snapshot"

    The Purchase Snapshot record


OnBeforePostSnapshot

local procedure OnBeforePostSnapshot(DocumentType: Enum "EOS Purchase Document Type"; DocumentNo: Code[20]; Force: Boolean; var Handled: Boolean)

Raised before posting the snapshot for a given document.

Parameters / Return Value

  • DocumentType Enum "EOS Purchase Document Type"

    The document type.

  • DocumentNo Code[20]

    The document no.

  • Force Boolean

    Indicates whether the ‘Force’ parameter was set.

  • Handled Boolean

    Gets or sets if this event has been completely handled.


OnCheckCanPostSnapshot

local procedure OnCheckCanPostSnapshot(DocumentType: Enum "EOS Purchase Document Type"; DocumentNo: Code[20]; var CanPost: Boolean; var Handled: Boolean)

Raised before the snapshot is about to be posted. Can be used override if the snapshot should be posted.

Parameters / Return Value

  • DocumentType Enum "EOS Purchase Document Type"

    The document type.

  • DocumentNo Code[20]

    The document no.

  • CanPost Boolean

    Gets or sets if the snapshot can be posted for this document.

  • Handled Boolean

    Gets or sets if this event has been completely handled.


OnAfterIsDocumentTypeSupported

local procedure OnAfterIsDocumentTypeSupported(DocumentType: Enum "Sales Document Type"; var IsSupported: Boolean)

Raised to determine if purchase snapshots are supported for the given document type.

Parameters / Return Value

  • DocumentType Enum "Sales Document Type"

    The document type.

  • IsSupported Boolean

    Gets or sets if the document type is supported.



EOS Labs -