Page "Purchase Order Subform"

ID 54
Namespace: Microsoft.Purchases.Document

Properties

Name Value
AutoSplitKey True
Caption Lines
DelayedInsert True
LinksAllowed False
MultipleNewLines True
PageType ListPart
SourceTable Table Microsoft.Purchases.Document."Purchase Line"
SourceTableView where("Document Type" = filter(Order))

Methods

ApproveCalcInvDisc

procedure ApproveCalcInvDisc()

InsertExtendedText

procedure InsertExtendedText(Unconditionally: Boolean)

Parameters

Name Type Description
Unconditionally Boolean

ShowTracking

procedure ShowTracking()

UpdateForm

procedure UpdateForm(SetSaveRecord: Boolean)

Parameters

Name Type Description
SetSaveRecord Boolean

NoOnAfterValidate

procedure NoOnAfterValidate()

ShowDocumentLineTracking

procedure ShowDocumentLineTracking()

RedistributeTotalsOnAfterValidate

procedure RedistributeTotalsOnAfterValidate()

ClearTotalPurchaseHeader

procedure ClearTotalPurchaseHeader()

CalculateTotals

procedure CalculateTotals()

DeltaUpdateTotals

procedure DeltaUpdateTotals()

ForceTotalsCalculation

procedure ForceTotalsCalculation()

UpdateEditableOnRow

procedure UpdateEditableOnRow()

UpdateTypeText

procedure UpdateTypeText()

Events

OnAfterNoOnAfterValidate

[IntegrationEvent(True,False)]
local procedure OnAfterNoOnAfterValidate(var PurchaseLine: Record "Purchase Line", var xPurchaseLine: Record "Purchase Line")

Parameters

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

OnAfterUpdateEditableOnRow

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateEditableOnRow(PurchaseLine: Record "Purchase Line", var IsCommentLine: Boolean, var IsBlankNumber: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsCommentLine Boolean
IsBlankNumber Boolean

OnAfterValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var PurchaseLine: Record "Purchase Line", var ShortcutDimCode: array[8] of Code[20], DimIndex: Integer)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
ShortcutDimCode array[8] of Code[20]
DimIndex Integer

OnBeforeCalculateTotals

[IntegrationEvent(False,False)]
local procedure OnBeforeCalculateTotals(var PurchLine: Record "Purchase Line", SuppressTotals: Boolean, var DocumentTotals: Codeunit "Document Totals", var IsHandled: Boolean)

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
SuppressTotals Boolean
DocumentTotals Codeunit Microsoft.Utilities."Document Totals"
IsHandled Boolean

OnBeforeCheckSendLineInvoiceDiscountResetNotification

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckSendLineInvoiceDiscountResetNotification(var PurchaseLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnBeforeInsertExtendedText

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertExtendedText(var PurchaseLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnBeforeOpenSpecOrderSalesOrderForm

[IntegrationEvent(False,False)]
local procedure OnBeforeOpenSpecOrderSalesOrderForm(var PurchaseLine: Record "Purchase Line", var SalesHeader: Record "Sales Header", var SalesOrder: Page "Sales Order", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesOrder Page Microsoft.Sales.Document."Sales Order"
IsHandled Boolean

OnBeforeSetDefaultType

[IntegrationEvent(False,False)]
local procedure OnBeforeSetDefaultType(var PurchaseLine: Record "Purchase Line", var xPurchaseLine: Record "Purchase Line", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
xPurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
IsHandled Boolean

OnBeforeUpdateTypeText

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

Parameters

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

OnItemReferenceNoOnLookup

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

Parameters

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

OnBeforeOpenSalesOrderForm

[IntegrationEvent(False,False)]
local procedure OnBeforeOpenSalesOrderForm(var PurchaseLine: Record "Purchase Line", var SalesHeader: Record "Sales Header", var SalesOrder: Page "Sales Order", var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
SalesHeader Table Microsoft.Sales.Document."Sales Header"
SalesOrder Page Microsoft.Sales.Document."Sales Order"
IsHandled Boolean

OnBeforeSetOpenPage

[IntegrationEvent(True,False)]
local procedure OnBeforeSetOpenPage()

OnAfterSetDimensionsVisibility

[IntegrationEvent(True,False)]
local procedure OnAfterSetDimensionsVisibility()

OnBeforeDeltaUpdateTotals

[IntegrationEvent(True,False)]
local procedure OnBeforeDeltaUpdateTotals(var PurchaseLine: Record "Purchase Line", xPurchaseLine: Record "Purchase Line")

Parameters

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

OnBeforeDeleteReservationEntries

[IntegrationEvent(True,False)]
local procedure OnBeforeDeleteReservationEntries(var PurchaseLine: Record "Purchase Line")

Parameters

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

OnBeforeOnDeleteRecord

[IntegrationEvent(False,False)]
local procedure OnBeforeOnDeleteRecord(var PurchaseLine: Record "Purchase Line", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PurchaseLine Table Microsoft.Purchases.Document."Purchase Line"
Result Boolean
IsHandled Boolean

See also