codeunitAL Developmentofficial - Microsoftderived - from the source, no model text

Codeunit 7003 "Price Calculation - V15"

Base Application · Microsoft.Pricing.Calculation

Across versions

  1. BC23present
  2. BC24declaration changed
  3. BC25declaration changed
  4. BC26-27unchanged
  5. BC287 events added
  6. BC29-30unchanged

Neighbourhood 8 connected objects and pages

Codeunit 5984 "Serv. Price Calculation V15" (event subscribers, 9 links)Serv. Price Calculation V15Codeunit 7000 "Sales Price Calc. Mgt." (calls, 16 links)Sales Price Calc. Mgt.Codeunit 7010 "Purch. Price Calc. Mgt." (calls, 15 links)Purch. Price Calc. Mgt.Codeunit 7008 "Price Calculation Buffer Mgt." (calls, 6 links)Price Calculation Buffer Mgt.Codeunit 7009 "CopyFromToPriceListLine" (calls, 3 links)CopyFromToPriceListLineCodeunit 1004 "Job Transfer Line" (calls)Job Transfer LineCodeunit 220 "Resource-Find Cost" (calls)Resource-Find CostPage 7007 "Get Sales Price" (calls)Get Sales Price

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Pricing.Calculation · BC23-30 · source at ea08af5e · facts from BC29

Events published

  • OnIsDisabled(var Disabled: Boolean) (integration)
  • OnAfterApplyPriceSalesHandler(var CurrLineWithPrice: Interface "Line With Price"; Header: Variant; Line: Variant; CalledByFieldNo: Integer) (integration)
  • OnAfterApplyDiscountSalesHandler(var CurrLineWithPrice: Interface "Line With Price"; Header: Variant; Line: Variant) + BC28 (integration)
  • OnAfterApplyPricePurchHandler(var CurrLineWithPrice: Interface "Line With Price"; Header: Variant; Line: Variant; CalledByFieldNo: Integer) (integration)
  • OnFindPriceListLineOnBeforeRunResourceFindCost(var ResourceCost: Record "Resource Cost"; PriceListLine: Record "Price List Line") (integration)
  • OnBeforeApplyDiscountSalesHandler(var CurrLineWithPrice: Interface "Line With Price"; var IsHandled: Boolean) (integration)
  • OnCountDiscount(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Integer) + BC28 (integration)
  • OnCountPrice(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Integer) + BC28 (integration)
  • OnIsDiscountExists(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Boolean) + BC28 (integration)
  • OnIsPriceExists(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Boolean) + BC28 (integration)
  • OnPickDiscount(TableID: Integer; Header: Variant; Line: Variant; var PriceType: Enum "Price Type") + BC28 (integration)
  • OnPickPrice(TableID: Integer; Header: Variant; Line: Variant) + BC28 (integration)

Event subscriptions

  • OnFindImplementationHandler subscribes to Codeunit “Price Calculation Mgt.” OnFindSupportedSetup

Procedures

  • GetID(): Integer
  • GetLine(var Line: Variant)
  • Init(NewLineWithPrice: Interface "Line With Price"; PriceCalculationSetup: Record "Price Calculation Setup")
  • ApplyDiscount()
  • ApplyPrice(CalledByFieldNo: Integer)
  • CountDiscount(ShowAll: Boolean): Integer
  • CountPrice(ShowAll: Boolean): Integer
  • FindDiscount(var TempPriceListLine: Record "Price List Line"; ShowAll: Boolean): Boolean
  • FindPrice(var TempPriceListLine: Record "Price List Line"; ShowAll: Boolean): Boolean
  • IsDiscountExists(ShowAll: Boolean): Boolean
  • IsPriceExists(ShowAll: Boolean): Boolean
  • PickDiscount()
  • PickPrice()
  • ShowPrices(var TempPriceListLine: Record "Price List Line")

Plus 7 local procedures.

Triggers

OnRun

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.

Implements

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: "codeunit", object_name: "Price Calculation - V15"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources