Page "Purchase Statistics"
ID 161
Namespace: Microsoft.Purchases.Document
Source table: Table Microsoft.Purchases.Document."Purchase Header"
Properties
| Name | Value |
|---|---|
| Caption | Purchase Statistics |
| DeleteAllowed | False |
| InsertAllowed | False |
| LinksAllowed | False |
| PageType | ListPlus |
| SourceTable | Table Microsoft.Purchases.Document."Purchase Header" |
Methods
UpdateVATOnPurchLines
procedure UpdateVATOnPurchLines()
Events
OnAfterCalculateTotals
[IntegrationEvent(True,False)]
local procedure OnAfterCalculateTotals(var PurchHeader: Record "Purchase Header", var TotalPurchLine: Record "Purchase Line", var TotalPurchLineLCY: Record "Purchase Line", var TempVATAmountLine: Record "VAT Amount Line" temporary, var TotalAmt1: Decimal, var TotalAmt2: Decimal)
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| TotalPurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| TotalPurchLineLCY | Table Microsoft.Purchases.Document."Purchase Line" | |
| TempVATAmountLine | Table Microsoft.Finance.VAT.Calculation."VAT Amount Line" | |
| TotalAmt1 | Decimal | |
| TotalAmt2 | Decimal |
OnAfterUpdateHeaderInfo
[IntegrationEvent(True,False)]
local procedure OnAfterUpdateHeaderInfo()
OnCalculateTotalsOnAfterPurchPostSumPurchLinesTemp
[IntegrationEvent(True,False)]
local procedure OnCalculateTotalsOnAfterPurchPostSumPurchLinesTemp(var PurchHeader: Record "Purchase Header", var TempPurchLine: Record "Purchase Line", var AllowVATDifference: Boolean, var TotalAmount1: Decimal, var TotalAmount2: Decimal, var VATAmount: Decimal, var PurchaseLineTotal: Record "Purchase Line", var PurchaseLineTotalLCY: Record "Purchase Line")
Parameters
| Name | Type | Description |
|---|---|---|
| PurchHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| TempPurchLine | Table Microsoft.Purchases.Document."Purchase Line" | |
| AllowVATDifference | Boolean | |
| TotalAmount1 | Decimal | |
| TotalAmount2 | Decimal | |
| VATAmount | Decimal | |
| PurchaseLineTotal | Table Microsoft.Purchases.Document."Purchase Line" | |
| PurchaseLineTotalLCY | Table Microsoft.Purchases.Document."Purchase Line" |
OnOpenPageOnBeforeSetEditable
[IntegrationEvent(False,False)]
local procedure OnOpenPageOnBeforeSetEditable(var AllowInvDisc: Boolean, var AllowVATDifference: Boolean, PurchaseHeader: Record "Purchase Header", var PurchSetup: Record "Purchases & Payables Setup")
Parameters
| Name | Type | Description |
|---|---|---|
| AllowInvDisc | Boolean | |
| AllowVATDifference | Boolean | |
| PurchaseHeader | Table Microsoft.Purchases.Document."Purchase Header" | |
| PurchSetup | Table Microsoft.Purchases.Setup."Purchases & Payables Setup" |