Codeunit 7003 "Price Calculation - V15"
Base Application · Microsoft.Pricing.Calculation
Across versions
- BC23present
- BC24declaration changed
- BC25declaration changed
- BC26-27unchanged
- BC287 events added
- BC29-30unchanged
Neighbourhood 8 connected objects and pages
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)- subscribers: Codeunit 5984 “Serv. Price Calculation V15” OnAfterApplyPriceSalesHandler
OnAfterApplyDiscountSalesHandler(var CurrLineWithPrice: Interface "Line With Price"; Header: Variant; Line: Variant)+ BC28 (integration)- subscribers: Codeunit 5984 “Serv. Price Calculation V15” OnAfterApplyDiscountSalesHandler
OnAfterApplyPricePurchHandler(var CurrLineWithPrice: Interface "Line With Price"; Header: Variant; Line: Variant; CalledByFieldNo: Integer)(integration)- subscribers: Codeunit 5984 “Serv. Price Calculation V15” OnAfterApplyPricePurchHandler
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)- subscribers: Codeunit 5984 “Serv. Price Calculation V15” OnCountDiscount
OnCountPrice(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Integer)+ BC28 (integration)- subscribers: Codeunit 5984 “Serv. Price Calculation V15” OnCountPrice
OnIsDiscountExists(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Boolean)+ BC28 (integration)- subscribers: Codeunit 5984 “Serv. Price Calculation V15” OnIsDiscountExists
OnIsPriceExists(TableID: Integer; Header: Variant; Line: Variant; ShowAll: Boolean; var Result: Boolean)+ BC28 (integration)- subscribers: Codeunit 5984 “Serv. Price Calculation V15” OnIsPriceExists
OnPickDiscount(TableID: Integer; Header: Variant; Line: Variant; var PriceType: Enum "Price Type")+ BC28 (integration)- subscribers: Codeunit 5984 “Serv. Price Calculation V15” OnPickDiscount
OnPickPrice(TableID: Integer; Header: Variant; Line: Variant)+ BC28 (integration)- subscribers: Codeunit 5984 “Serv. Price Calculation V15” OnPickPrice
Event subscriptions
- OnFindImplementationHandler subscribes to Codeunit “Price Calculation Mgt.” OnFindSupportedSetup
Procedures
GetID(): IntegerGetLine(var Line: Variant)Init(NewLineWithPrice: Interface "Line With Price"; PriceCalculationSetup: Record "Price Calculation Setup")ApplyDiscount()ApplyPrice(CalledByFieldNo: Integer)CountDiscount(ShowAll: Boolean): IntegerCountPrice(ShowAll: Boolean): IntegerFindDiscount(var TempPriceListLine: Record "Price List Line"; ShowAll: Boolean): BooleanFindPrice(var TempPriceListLine: Record "Price List Line"; ShowAll: Boolean): BooleanIsDiscountExists(ShowAll: Boolean): BooleanIsPriceExists(ShowAll: Boolean): BooleanPickDiscount()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.
- Codeunit 7000 “Sales Price Calc. Mgt.” (16 calls:
ApplyDiscountSalesHandler → FindSalesLineLineDisc,ApplyPriceSalesHandler → FindItemJnlLinePrice,ApplyPriceSalesHandler → FindJobJnlLinePrice, …) - Codeunit 7010 “Purch. Price Calc. Mgt.” (15 calls:
ApplyDiscountPurchHandler → FindPurchLineLineDisc,ApplyDiscountPurchHandler → FindReqLineDisc,ApplyPricePurchHandler → FindItemJnlLinePrice, …) - Codeunit 7008 “Price Calculation Buffer Mgt.” (6 calls:
FindDiscount → FillBestLine,FindDiscount → GetBuffer,FindDiscount → GetSource, …) - Codeunit 7009 “CopyFromToPriceListLine” (3 calls:
FindDiscount → CopyFrom,FindPrice → CopyFrom,ShowPrices → CopyTo) - Codeunit 1004 “Job Transfer Line” (1 call:
ApplyPriceSalesHandler → JobTransferMarkerFieldNo) - Codeunit 220 “Resource-Find Cost” (1 call:
FindPriceListLine → (object)) - Page 7007 “Get Sales Price” (1 call:
ShowPrices → (object))
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.