Table "Standard Vendor Purchase Code"

ID 175
Namespace: Microsoft.Purchases.Document

Properties

Name Value
Caption Standard Vendor Purchase Code
DataClassification CustomerContent

Fields

Name Type Description
"Vendor No." Code[20]
Code Code[10]
Description Text[100]
"Currency Code" Code[10]
"Insert Rec. Lines On Quotes" Option
"Insert Rec. Lines On Orders" Option
"Insert Rec. Lines On Invoices" Option
"Insert Rec. Lines On Cr. Memos" Option
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

InsertPurchLines

procedure InsertPurchLines(PurchHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"

ApplyStdCodesToPurchaseLines

procedure ApplyStdCodesToPurchaseLines(PurchHeader: Record "Purchase Header", StdVendPurchCode: Record "Standard Vendor Purchase Code")

Parameters

Name Type Description
PurchHeader Table Microsoft.Purchases.Document."Purchase Header"
StdVendPurchCode Table Microsoft.Purchases.Document."Standard Vendor Purchase Code"

InsertExtendedText

procedure InsertExtendedText(PurchLine: Record "Purchase Line")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"

InsertExtendedText

procedure InsertExtendedText(PurchLine: Record "Purchase Line", PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

GetNextLineNo

procedure GetNextLineNo(PurchLine: Record "Purchase Line"): Integer

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"

Returns

Type Description
Integer

SetFilterByAutomaticAndAlwaysAskCodes

procedure SetFilterByAutomaticAndAlwaysAskCodes(PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

IsInsertRecurringLinesOnDocumentAutomatic

procedure IsInsertRecurringLinesOnDocumentAutomatic(PurchaseHeader: Record "Purchase Header"): Boolean

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

Returns

Type Description
Boolean

ShouldAutoInsertRecurringLinesOnDocument

procedure ShouldAutoInsertRecurringLinesOnDocument(PurchaseHeader: Record "Purchase Header"): Boolean

Parameters

Name Type Description
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

Returns

Type Description
Boolean

Events

OnBeforeApplyStdCodesToPurchaseLines

[IntegrationEvent(False,False)]
local procedure OnBeforeApplyStdCodesToPurchaseLines(var PurchLine: Record "Purchase Line", StdPurchLine: Record "Standard Purchase Line")

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
StdPurchLine Table Microsoft.Purchases.Document."Standard Purchase Line"

OnAfterCombineDimensions

[IntegrationEvent(False,False)]
local procedure OnAfterCombineDimensions(var PurchaseLine: Record "Purchase Line", StdPurchaseLine: Record "Standard Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
StdPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"

OnAfterApplyStdCodesToPurchaseLines

[IntegrationEvent(False,False)]
local procedure OnAfterApplyStdCodesToPurchaseLines(var StandardVendorPurchaseCode: Record "Standard Vendor Purchase Code", var StandardPurchaseLine: Record "Standard Purchase Line", var PurchaseLine: Record "Purchase Line", PurchaseHeader: Record "Purchase Header", StandardPurchaseCode: Record "Standard Purchase Code")

Parameters

Name Type Description
StandardVendorPurchaseCode Table Microsoft.Purchases.Document."Standard Vendor Purchase Code"
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
StandardPurchaseCode Table Microsoft.Purchases.Document."Standard Purchase Code"

OnApplyStdCodesToPurchaseLinesOnBeforeStdPurchLineFind

[IntegrationEvent(False,False)]
local procedure OnApplyStdCodesToPurchaseLinesOnBeforeStdPurchLineFind(var StandardVendorPurchaseCode: Record "Standard Vendor Purchase Code", var StandardPurchaseLine: Record "Standard Purchase Line", var PurchaseLine: Record "Purchase Line", PurchaseHeader: Record "Purchase Header", StandardPurchaseCode: Record "Standard Purchase Code")

Parameters

Name Type Description
StandardVendorPurchaseCode Table Microsoft.Purchases.Document."Standard Vendor Purchase Code"
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
StandardPurchaseCode Table Microsoft.Purchases.Document."Standard Purchase Code"

OnApplyStdCodesToPurchaseLinesOnAfterPurchLineInsert

[IntegrationEvent(False,False)]
local procedure OnApplyStdCodesToPurchaseLinesOnAfterPurchLineInsert(var PurchaseLine: Record "Purchase Line", var PurchaseHeader: Record "Purchase Header", var StandardPurchaseLine: Record "Standard Purchase Line")

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"

OnInsertPurchLinesOnBeforeApplyStdVendPurchCodes

[IntegrationEvent(False,False)]
local procedure OnInsertPurchLinesOnBeforeApplyStdVendPurchCodes(var StandardVendorPurchaseCode: Record "Standard Vendor Purchase Code", var IsHandled: Boolean, var PurchaseHeader: Record "Purchase Header")

Parameters

Name Type Description
StandardVendorPurchaseCode Table Microsoft.Purchases.Document."Standard Vendor Purchase Code"
IsHandled Boolean
PurchaseHeader Table Microsoft.Purchases.Document."Purchase Header"

See also