Source AL, 359 lines
src/Layers/W1/BaseApp/Purchases/Pricing/PurchaseLinePrice.Codeunit.allines 16 to 31 of 359, Copyright (c) Microsoft Corporation. MIT
codeunit 7021 "Purchase Line - Price" implements "Line With Price"{ var PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; StockkeepingUnit: Record "Stockkeeping Unit"; PriceSourceList: Codeunit "Price Source List"; CurrPriceType: Enum "Price Type"; PriceCalculated: Boolean; DiscountIsAllowed: Boolean; IsSKU: Boolean; procedure GetTableNo(): Integer begin exit(Database::"Purchase Line") end;
All 359 lines
Events 12 in 29
| [IntegrationEvent] OnAfterAddSources(PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line"; PriceType: Enum "Price Type"; var PriceSourceList: Codeunit "Price Source List") | 17-29 |
| [IntegrationEvent] OnAfterFillBuffer(var PriceCalculationBuffer: Record "Price Calculation Buffer"; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") | 17-29 |
| [IntegrationEvent] OnAfterGetDocumentDate(var DocumentDate: Date; PurchaseHeader: Record "Purchase Header"; PurchaseLine: Record "Purchase Line") | 17-29 |
| [IntegrationEvent] OnAfterGetAssetType(PurchaseLine: Record "Purchase Line"; var AssetType: Enum "Price Asset Type") | new in 18 |
| [IntegrationEvent] OnAfterIsDiscountAllowed(PurchaseLine: Record "Purchase Line"; PriceCalculated: Boolean; var Result: Boolean) | new in 21 |
| [IntegrationEvent] OnAfterIsPriceUpdateNeeded(AmountType: Enum "Price Amount Type"; FoundPrice: Boolean; CalledByFieldNo: Integer; PurchaseLine: Record "Purchase Line"; var Result: Boolean; IsSKU: Boolean) | new in 21 |
| [IntegrationEvent] OnAfterSetPrice(var PurchaseLine: Record "Purchase Line"; PriceListLine: Record "Price List Line"; AmountType: Enum "Price Amount Type"; CurrPriceType: Enum "Price Type"; var PurchaseHeader: Record "Purchase Header") | new in 21 |
All 16 events in 17-29
Public procedures 18 in 29
| GetTableNo(): Integer | 17-29 |
| SetLine(PriceType: Enum "Price Type"; Line: Variant) | 17-29 |
| SetLine(PriceType: Enum "Price Type"; Header: Variant; Line: Variant) | 17-29 |
| SetSources(var NewPriceSourceList: Codeunit "Price Source List") | 17-29 |
| GetLine(var Line: Variant) | 17-29 |
| GetLine(var Header: Variant; var Line: Variant) | 17-29 |
All 18 procedures
Changes 2 in 23
All 18 changes in 17-29