Page 403 "Purchase Order Statistics"
Base Application · Microsoft.Purchases.Document
Across versions
- BC23-25present
- BC261 events added
- BC27-28unchanged
- BC291 procedures changed
- BC30unchanged
Neighbourhood 9 connected objects and pages
Base Application · Microsoft.Purchases.Document · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Caption | Purchase Order Statistics |
| SourceTable | Purchase Header |
| PageType | Card |
Fields on this page
Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control’s own, else the bound field’s (marked).
| Group | Control | Shows | ToolTip |
|---|---|---|---|
| General | Amount | TotalPurchLine[1]."Line Amount" |
Specifies the net amount of all the lines in the purchase order. This amount does not include VAT or any invoice discount, but does include line discounts. |
| Inv. Discount Amount | TotalPurchLine[1]."Inv. Discount Amount" |
Specifies the invoice discount amount for the entire purchase order. | |
| Total | TotalAmount1[1] |
Specifies the total amount, less any invoice discount amount and excluding VAT for the purchase order. | |
| VAT Amount | VATAmount[1] |
Specifies the total VAT amount that has been calculated for all the lines in the purchase order. | |
| Total Incl. VAT | TotalAmount2[1] |
Specifies the amount, including VAT. On the Invoicing FastTab, this is the amount that is posted to the vendor’s account for all the lines in the purchase order if you post the purchase order as invoiced. | |
| Purchase (LCY) | TotalPurchLineLCY[1].Amount |
Specifies the amount in the Total field, converted to LCY. | |
| Quantity | TotalPurchLine[1].Quantity |
Specifies the total quantity of G/L account entries, fixed assets, and/or items in the purchase order. | |
| Parcels | TotalPurchLine[1]."Units per Parcel" |
Specifies the total number of parcels in the purchase order. | |
| Net Weight | TotalPurchLine[1]."Net Weight" |
Specifies the total net weight of the items in the purchase order. | |
| Gross Weight | TotalPurchLine[1]."Gross Weight" |
Specifies the total gross weight of the items in the purchase order. | |
| Volume | TotalPurchLine[1]."Unit Volume" |
Specifies the total volume of the items in the purchase order. | |
| No. of Tax Lines | TempVATAmountLine1.Count |
Specifies the number of lines on the purchase order that have VAT amounts. | |
| Invoicing | Amount | TotalPurchLine[2]."Line Amount" |
Specifies the net amount of all the lines in the purchase order. This amount does not include VAT or any invoice discount, but does include line discounts. |
| Inv. Discount Amount | TotalPurchLine[2]."Inv. Discount Amount" |
Specifies the invoice discount amount. | |
| Total | TotalAmount1[2] |
Specifies the total amount less any invoice discount amount and excluding VAT for the purchase order. | |
| VAT Amount | VATAmount[2] |
Specifies the total VAT amount that has been calculated for all the lines in the purchase order. | |
| Total Incl. VAT | TotalAmount2[2] |
Specifies the amount, including VAT. On the Invoicing FastTab, this is the amount that is posted to the vendor’s account for all the lines in the purchase order if you post the purchase order as invoiced. | |
| Purchase (LCY) | TotalPurchLineLCY[2].Amount |
Specifies the amount in the Total field, converted to LCY. | |
| Quantity | TotalPurchLine[2].Quantity |
Specifies the total quantity of G/L account entries, fixed assets, and/or items in the purchase order. | |
| Parcels | TotalPurchLine[2]."Units per Parcel" |
Specifies the total number of parcels in the purchase order. | |
| Net Weight | TotalPurchLine[2]."Net Weight" |
Specifies the total net weight of the items in the purchase order. | |
| Gross Weight | TotalPurchLine[2]."Gross Weight" |
Specifies the total gross weight of the items in the purchase order. | |
| Volume | TotalPurchLine[2]."Unit Volume" |
Specifies the total volume of the items in the purchase order. | |
| No. of Tax Lines | TempVATAmountLine2.Count |
Specifies the number of lines on the purchase order that have VAT amounts. | |
| Shipping | Amount | TotalPurchLine[3]."Line Amount" |
Specifies the net amount of all the lines in the purchase order. This amount does not include VAT or any invoice discount, but does include line discounts. |
| Inv. Discount Amount | TotalPurchLine[3]."Inv. Discount Amount" |
Specifies the invoice discount amount for the entire purchase order. | |
| Total | TotalAmount1[3] |
Specifies the total amount less any invoice discount amount and excluding VAT for the purchase order. | |
| VAT Amount | VATAmount[3] |
Specifies the total VAT amount that has been calculated for all the lines in the purchase order. | |
| Total Incl. VAT | TotalAmount2[3] |
Specifies the amount, including VAT. On the Invoicing FastTab, this is the amount that is posted to the vendor’s account for all the lines in the purchase order if you post the purchase order as invoiced. | |
| Purchase (LCY) | TotalPurchLineLCY[3].Amount |
Specifies the amount in the Total field, converted to LCY. | |
| Quantity | TotalPurchLine[3].Quantity |
Specifies the total quantity of G/L account entries, fixed assets, and/or items in the purchase order. | |
| Parcels | TotalPurchLine[3]."Units per Parcel" |
Specifies the total number of parcels in the purchase order. | |
| Net Weight | TotalPurchLine[3]."Net Weight" |
Specifies the total net weight of the items in the purchase order. | |
| Gross Weight | TotalPurchLine[3]."Gross Weight" |
Specifies the total gross weight of the items in the purchase order. | |
| Volume | TotalPurchLine[3]."Unit Volume" |
Specifies the total volume of the items in the purchase order. | |
| No. of Tax Lines | TempVATAmountLine3.Count |
Specifies the number of lines on the purchase order that have VAT amounts. | |
| Prepayment | PrepmtTotalAmount | PrepmtTotalAmount |
— |
| Prepayment Amount Invoiced | PrepmtVATAmount |
Specifies the total prepayment amount that has been invoiced for the order. | |
| Prepmt. Amount Invoiced | PrepmtTotalAmount2 |
Specifies the total prepayment amount that has been invoiced for the order. | |
| TotalPurchLine[1].““Prepmt. Amt. Inv.”” | TotalPurchLine[1]."Prepmt. Amt. Inv." |
— | |
| Invoiced % of Prepayment Amt. | PrepmtInvPct |
Specifies the invoiced percentage of the prepayment amount. | |
| TotalPurchLine[1].““Prepmt Amt Deducted”” | TotalPurchLine[1]."Prepmt Amt Deducted" |
— | |
| Deducted % of Prepayment Amt. to Deduct | PrepmtDeductedPct |
Specifies the deducted percentage of the prepayment amount to deduct. | |
| TotalPurchLine[1].““Prepmt Amt to Deduct”” | TotalPurchLine[1]."Prepmt Amt to Deduct" |
— | |
| No. of VAT Lines | TempVATAmountLine4.Count |
Specifies the number of purchase order lines that are associated with the VAT ledger line. | |
| Vendor | Balance (LCY) | Vend."Balance (LCY)" |
Specifies the balance (in LCY) due to the vendor. |
Events published
OnOpenPageOnBeforeSetEditable(var AllowInvDisc: Boolean; var AllowVATDifference: Boolean; PurchaseHeader: Record "Purchase Header"; PurchSetup: Record "Purchases & Payables Setup")(integration)OnBeforeValidatePrepmtTotalAmount2(PurchaseHeader: Record "Purchase Header"; var PrepmtTotalAmount: Decimal; var PrepmtTotalAmount2: Decimal)(integration)OnRefreshOnAfterGetRecordOnAfterGetPurchLines(PuchaseHeader: Record "Purchase Header"; var TempPurchaseLine: Record "Purchase Line" temporary)(integration)OnRefreshOnAfterGetRecordAfterSumPurchLinesTemp(var TempPurchLine: Record "Purchase Line"; var IsHandled: Boolean)(integration)OnUpdateHeaderInfoAfterCalcTotalAmount(var PurchaseHeader: Record "Purchase Header"; var IndexNo: Integer)(integration)OnRefreshOnAfterGetRecordOnBeforePurchLineCalcVATAmountLines(var PurchaseHeader: Record "Purchase Header")(integration)OnRefreshOnAfterGetRecordOnAfterCalcTotal(var PurchaseHeader: Record "Purchase Header"; i: Integer)(integration)OnAfterRefreshOnAfterGetRecord(var PurchaseHeader: Record "Purchase Header"; TotalAmount1: array[3] of Decimal; TotalAmount2: array[3] of Decimal)(integration)OnRefreshOnAfterGetRecordOnBeforeTempPurchLineDeleteAll(var PurchaseHeader: Record "Purchase Header"; var TempPurchLine: Record "Purchase Line" temporary; i: Integer)+ BC26 (integration)
Procedures
UpdateTotalAmount(IndexNo: Integer)(protected)UpdateInvDiscAmount(ModifiedIndexNo: Integer)(protected)GetCaptionClass(FieldCaption: Text[100]; ReverseCaption: Boolean): Text[80](protected)UpdateVATOnPurchLines()VATLinesDrillDown(var VATLinesToDrillDown: Record "VAT Amount Line"; ThisTabAllowsVATEditing: Boolean)Δ BC29
Plus 7 local procedures.
Triggers
OnAfterGetRecord, OnOpenPage, OnClosePage, OnQueryClosePage
Relations
- source table Table 38 “Purchase Header”
Extended by
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 444 “Purchase-Post Prepayments” (5 calls:
RefreshOnAfterGetRecord → GetPurchLines,RefreshOnAfterGetRecord → SumPrepmt,UpdatePrepmtAmount → GetPurchLines, …) - Codeunit 90 “Purch.-Post” (2 calls:
RefreshOnAfterGetRecord → GetPurchLines,RefreshOnAfterGetRecord → SumPurchLinesTemp) - Codeunit 27 “Confirm Management” (1 call:
UpdateInvDiscAmount → GetResponseOrDefault) - Codeunit 415 “Release Purchase Document” (1 call:
OnQueryClosePage → CalcAndUpdateVATOnLines) - Codeunit 66 “Purch - Calc Disc. By Type” (1 call:
OnClosePage → ResetRecalculateInvoiceDisc)
Documented on Microsoft Learn
Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "page", object_name: "Purchase Order Statistics"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.