Page "Sales Order Statistics"

ID 402
Namespace: Microsoft.Sales.Document

Properties

Name Value
Caption Sales Order Statistics
DeleteAllowed False
InsertAllowed False
LinksAllowed False
PageType Card
SourceTable Table Microsoft.Sales.Document."Sales Header"

Methods

UpdateHeaderInfo

procedure UpdateHeaderInfo(IndexNo: Integer, var VATAmountLine: Record "VAT Amount Line")

Parameters

Name Type Description
IndexNo Integer
VATAmountLine Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

Events

OnOpenPageOnBeforeSetEditable

[IntegrationEvent(False,False)]
local procedure OnOpenPageOnBeforeSetEditable(var AllowInvDisc: Boolean, var AllowVATDifference: Boolean, SalesHeader: Record "Sales Header")

Parameters

Name Type Description
AllowInvDisc Boolean
AllowVATDifference Boolean
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnAfterCalculateTotalAmounts

[IntegrationEvent(True,False)]
local procedure OnAfterCalculateTotalAmounts(var TempSalesLine: Record "Sales Line" temporary, var TempVATAmountLine1: Record "VAT Amount Line" temporary)

Parameters

Name Type Description
TempSalesLine Table Microsoft.Sales.Document."Sales Line"
TempVATAmountLine1 Table Microsoft.Finance.VAT.Calculation."VAT Amount Line"

OnAfterUpdateHeaderInfo

[IntegrationEvent(True,False)]
local procedure OnAfterUpdateHeaderInfo(var TotalSalesLineLCY: array[3] of Record "Sales Line", var IndexNo: Integer)

Parameters

Name Type Description
TotalSalesLineLCY array[3] of Record "Sales Line"
IndexNo Integer

OnBeforeValidatePrepmtTotalAmount2

[IntegrationEvent(False,False)]
local procedure OnBeforeValidatePrepmtTotalAmount2(SalesHeader: Record "Sales Header", var PrepmtTotalAmount: Decimal, var PrepmtTotalAmount2: Decimal)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
PrepmtTotalAmount Decimal
PrepmtTotalAmount2 Decimal

OnAfterCheckAllowInvDisc

[IntegrationEvent(False,False)]
local procedure OnAfterCheckAllowInvDisc(SalesHeader: Record "Sales Header")

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"

OnRefreshOnAfterGetRecordOnAfterGetSalesLines

[IntegrationEvent(False,False)]
local procedure OnRefreshOnAfterGetRecordOnAfterGetSalesLines(SalesHeader: Record "Sales Header", var TempSalesLine: Record "Sales Line" temporary)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
TempSalesLine Table Microsoft.Sales.Document."Sales Line"

OnRefreshOnAfterGetRecordOnBeforeTempSalesLineDeleteAll

[IntegrationEvent(False,False)]
local procedure OnRefreshOnAfterGetRecordOnBeforeTempSalesLineDeleteAll(SalesHeader: Record "Sales Header", var TempSalesLine: Record "Sales Line" temporary)

Parameters

Name Type Description
SalesHeader Table Microsoft.Sales.Document."Sales Header"
TempSalesLine Table Microsoft.Sales.Document."Sales Line"

OnUpdateHeaderInfoOnBeforeSetAmount

[IntegrationEvent(True,False)]
local procedure OnUpdateHeaderInfoOnBeforeSetAmount(IndexNo: Integer)

Parameters

Name Type Description
IndexNo Integer

OnRefreshOnAfterGetRecordOnAfterSetTotalAmounts

[IntegrationEvent(False,False)]
local procedure OnRefreshOnAfterGetRecordOnAfterSetTotalAmounts(var TotalAmount1: array[3] of Decimal, var TotalAmount2: array[3] of Decimal, var TotalSalesLine: array[3] of Record "Sales Line")

Parameters

Name Type Description
TotalAmount1 array[3] of Decimal
TotalAmount2 array[3] of Decimal
TotalSalesLine array[3] of Record "Sales Line"

OnUpdateHeaderInfoOnAfterSetTotalAmount

[IntegrationEvent(False,False)]
local procedure OnUpdateHeaderInfoOnAfterSetTotalAmount(IndexNo: Integer, var TotalAmount1: array[3] of Decimal, var TotalSalesLine: array[3] of Record "Sales Line")

Parameters

Name Type Description
IndexNo Integer
TotalAmount1 array[3] of Decimal
TotalSalesLine array[3] of Record "Sales Line"

OnUpdateHeaderInfoOnBeforeSetLineAmount

[IntegrationEvent(False,False)]
local procedure OnUpdateHeaderInfoOnBeforeSetLineAmount(var TotalSalesLine: array[3] of Record "Sales Line", var TotalAmount1: array[3] of Decimal, IndexNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
TotalSalesLine array[3] of Record "Sales Line"
TotalAmount1 array[3] of Decimal
IndexNo Integer
IsHandled Boolean

OnRefreshOnAfterGetRecordOnBeforeSetCreditLimitLCYExpendedPct

[IntegrationEvent(True,False)]
local procedure OnRefreshOnAfterGetRecordOnBeforeSetCreditLimitLCYExpendedPct(var Customer: Record Customer, var SalesHeader: Record "Sales Header")

Parameters

Name Type Description
Customer Table Microsoft.Sales.Customer.Customer
SalesHeader Table Microsoft.Sales.Document."Sales Header"

See also