Interface "Line With Price"
Base Application · Microsoft.Pricing.PriceList
Across versions
- BC23-30present
Base Application · Microsoft.Pricing.PriceList · BC23-30 · source at ea08af5e · facts from BC29
Procedures
GetTableNo(): IntegerSetLine(PriceType: Enum "Price Type"; Line: Variant): Setup the internal record line. Applicable for the journal lines that does not have a header record. The PriceType parameter defines what type of price is going to be calculated.SetLine(PriceType: Enum "Price Type"; Header: Variant; Line: Variant): Setup the internal records - line and header. Applicable for the document lines. The PriceType parameter defines what type of price is going to be calculated.SetSources(var NewPriceSourceList: codeunit "Price Source List"): This method allows to overwrite the internal price source list that is normally filled by SetLine() method.GetLine(var Line: Variant): After the calculations are done this method allows to get the updated internal record line.GetLine(var Header: Variant; var Line: Variant): After the calculations are done this method allows to get the updated internal record line and header.GetAssetType(): Enum "Price Asset Type": Returns the asset type of the internal record line.GetPriceType(): Enum "Price Type": Returns the price type that was set by the SetLine() method.IsPriceUpdateNeeded(AmountType: enum "Price Amount Type"; FoundPrice: Boolean; CalledByFieldNo: Integer): Boolean: This method defines if the source line should be updated after the search for a price list line is done.IsDiscountAllowed(): Boolean: The calculation of the price defines if the discount allowed for this line. This method should be called after the price is calculated.Verify(): Verification of the line before price calculation, usually some TESTFIELD calls.SetAssetSourceForSetup(var DtldPriceCalculationSetup: Record "Dtld. Price Calculation Setup"): Boolean: Copy asset and source data to the buffer to search for a detailed price calculation setup.CopyToBuffer(var PriceCalculationBufferMgt: Codeunit "Price Calculation Buffer Mgt."): Boolean: Copy the fields related for price calculation to the buffer that is used in calculation handlers.Update(AmountType: enum "Price Amount Type"): This method is called after the calculation and allow to do corrections.SetPrice(AmountType: enum "Price Amount Type"; PriceListLine: Record "Price List Line"): After calculation is done, and the right price list line is found this method copies required fields to the internal record line. The amount type defines what amount will be copied.ValidatePrice(AmountType: enum "Price Amount Type"): The method SetPrice() copies amounts to the internal record line. This method calls the validation triggers on the amount defined by AmountType parameter.
Implemented by
- Codeunit 7020 “Sales Line - Price”
- Codeunit 7021 “Purchase Line - Price”
- Codeunit 7022 “Item Journal Line - Price”
- Codeunit 7023 “Job Journal Line - Price”
- Codeunit 7024 “Job Planning Line - Price”
- Codeunit 7025 “Requisition Line - Price”
- Codeunit 7026 “Service Line - Price”
- Codeunit 7027 “Std. Item Jnl. Line - Price”
- Codeunit 7028 “Res. Journal Line - Price”
- Codeunit 7029 “Price List Line - Price”
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: "interface", object_name: "Line With Price"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.