Table "Standard Purchase Line"

ID 174
Namespace: Microsoft.Purchases.Document

Properties

Name Value
Caption Standard Purchase Line
DataClassification CustomerContent

Fields

Name Type Description
"Standard Purchase Code" Code[10]
"Line No." Integer
Type Enum Microsoft.Purchases.Document."Purchase Line Type"
"No." Code[20]
Description Text[100]
Quantity Decimal
"Amount Excl. VAT" Decimal
"Unit of Measure Code" Code[10]
"Shortcut Dimension 1 Code" Code[20]
"Shortcut Dimension 2 Code" Code[20]
"Variant Code" Code[10]
"Dimension Set ID" Integer
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

EmptyLine

procedure EmptyLine(): Boolean

Returns

Type Description
Boolean

InsertLine

procedure InsertLine(): Boolean

Returns

Type Description
Boolean

ShowDimensions

procedure ShowDimensions()

ValidateShortcutDimCode

procedure ValidateShortcutDimCode(FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]

LookupShortcutDimCode

procedure LookupShortcutDimCode(FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]

ShowShortcutDimCode

procedure ShowShortcutDimCode(var ShortcutDimCode: array[8] of Code[20])

Parameters

Name Type Description
ShortcutDimCode array[8] of Code[20]

FormatType

procedure FormatType(): Text[20]

Returns

Type Description
Text[20]

Events

OnBeforeLookupShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupShortcutDimCode(var StandardPurchaseLine: Record "Standard Purchase Line", var xStandardPurchaseLine: Record "Standard Purchase Line", FieldNumber: Integer, var ShortcutDimCode: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
xStandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
FieldNumber Integer
ShortcutDimCode Code[20]
IsHandled Boolean

OnAfterShowDimensions

[IntegrationEvent(False,False)]
local procedure OnAfterShowDimensions(var StandardPurchaseLine: Record "Standard Purchase Line", var DimMgt: Codeunit DimensionManagement)

Parameters

Name Type Description
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
DimMgt Codeunit Microsoft.Finance.Dimension.DimensionManagement

OnAfterValidateGLAccountNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateGLAccountNo(var StandardPurchaseLine: Record "Standard Purchase Line", GLAccount: Record "G/L Account")

Parameters

Name Type Description
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
GLAccount Table Microsoft.Finance.GeneralLedger.Account."G/L Account"

OnAfterValidateItemNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateItemNo(var StandardPurchaseLine: Record "Standard Purchase Line", Item: Record Item)

Parameters

Name Type Description
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
Item Table Microsoft.Inventory.Item.Item

OnAfterValidateResourceNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateResourceNo(var StandardPurchaseLine: Record "Standard Purchase Line", Resource: Record Resource)

Parameters

Name Type Description
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
Resource Table Microsoft.Projects.Resources.Resource.Resource

OnAfterValidateFANo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateFANo(var StandardPurchaseLine: Record "Standard Purchase Line", FixedAsset: Record "Fixed Asset")

Parameters

Name Type Description
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
FixedAsset Table Microsoft.FixedAssets.FixedAsset."Fixed Asset"

OnAfterValidateItemChargeNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateItemChargeNo(var StandardPurchaseLine: Record "Standard Purchase Line", ItemCharge: Record "Item Charge")

Parameters

Name Type Description
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
ItemCharge Table Microsoft.Inventory.Item."Item Charge"

OnAfterValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var StandardPurchaseLine: Record "Standard Purchase Line", xStandardPurchaseLine: Record "Standard Purchase Line", FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
xStandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var StandardPurchaseLine: Record "Standard Purchase Line", xStandardPurchaseLine: Record "Standard Purchase Line", FieldNumber: Integer, var ShortcutDimCode: Code[20])

Parameters

Name Type Description
StandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
xStandardPurchaseLine Table Microsoft.Purchases.Document."Standard Purchase Line"
FieldNumber Integer
ShortcutDimCode Code[20]

See also