codeunitService Managementofficial - Microsoftderived - from the source, no model text

Codeunit 5950 "Service-Calc. Discount"

Base Application · Microsoft.Service.Document

Across versions

  1. BC23-25present
  2. BC261 events added
  3. BC271 procedures changed, 1 events added
  4. BC28-30unchanged

Neighbourhood 14 connected objects and pages

Table 5902 "Service Line" (relates to)Service LineCodeunit 5988 "Serv-Documents Mgt." (calls, 2 links)Serv-Documents Mgt.Codeunit 5951 "Service-Disc. (Yes/No)" (calls)Service-Disc. (Yes/No)Codeunit 6461 "Serv. Document Print" (calls)Serv. Document PrintCodeunit 6462 "Serv. Test Report Print" (calls)Serv. Test Report PrintCodeunit 6484 "Serv. Undo Posting Mgt." (calls)Serv. Undo Posting Mgt.Codeunit 65 "Discount Notification Mgt." (calls)Discount Notification Mgt.Page 5905 "Service Lines" (calls)Service LinesPage 5914 "Service Order Statistics" (calls)Service Order StatisticsPage 6030 "Service Statistics" (calls)Service StatisticsReport 6001 "Batch Post Service Orders" (calls)Batch Post Service OrdersReport 6004 "Batch Post Service Invoices" (calls)Batch Post Service InvoicesReport 6005 "Batch Post Service Cr. Memos" (calls)Batch Post Service Cr. MemosReport 9091 "Combine Service Shipments" (calls)Combine Service Shipments

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.Service.Document · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
TableNo Service Line

Events published

  • OnAfterCalcServDiscount(var ServiceHeader: Record "Service Header"; var TempVATAmountLine: Record "VAT Amount Line" temporary; var ServiceLine: Record "Service Line") (integration)
  • OnBeforeCalcServDiscount(var ServiceHeader: Record "Service Header"; var ServiceLine: Record "Service Line"; var ServiceLine2: Record "Service Line"; TemporaryHeader: Boolean; var IsHandled: Boolean) (integration)
  • OnCalculateInvoiceDiscountOnBeforeServiceLine2Delete(var ServiceLine: Record "Service Line"; TemporaryHeader: Boolean; var IsHandled: Boolean) (integration)
  • OnCalculateInvoiceDiscountOnAfterServiceLine2ValidateQuantity(var ServiceHeader: Record "Service Header"; var ServiceLine2: Record "Service Line"; var CustInvDisc: Record "Cust. Invoice Disc.") (integration)
  • OnCalculateInvoiceDiscountOnBeforeServiceLineInsert(var ServiceLine: Record "Service Line"; ServiceHeader: Record "Service Header") (integration)
  • OnCalculateInvoiceDiscountOnBeforeApplyServiceCharge(var CustInvoiceDisc: Record "Cust. Invoice Disc."; var ServiceHeader: Record "Service Header"; CurrencyDate: Date; ChargeBase: Decimal; var ApplyServiceCharge: Boolean) (integration)
  • OnCalculateInvoiceDiscountOnAfterApplyServiceCharge(var CustInvoiceDisc: Record "Cust. Invoice Disc."; var ServiceHeader: Record "Service Header"; var ServiceLine: Record "Service Line"; CurrencyDate: Date; TemporaryHeader: Boolean) + BC27 (internal)
  • OnCalculateInvoiceDiscountOnBeforeIsServiceChargeUpdated(var ServiceLine: Record "Service Line"; CustomerPostingGroup: Record "Customer Posting Group"; var IsHandled: Boolean) (integration)
  • OnCalculateInvoiceDiscountOnAfterSetServiceLineFilters(var ServiceLine: Record "Service Line") + BC26 (integration)

Procedures

  • CalculateWithServHeader(var TempServHeader: Record "Service Header"; var ServiceLine: Record "Service Line"; var TempServiceLine: Record "Service Line")
  • CalculateIncDiscForHeader(var TempServiceHeader: Record "Service Header")

Plus 4 local procedures.

Triggers

OnRun

Relations

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.

Called by

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: "Service-Calc. Discount"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources