Codeunit 5950 "Service-Calc. Discount"
Base Application · Microsoft.Service.Document
Across versions
- BC23-25present
- BC261 events added
- BC271 procedures changed, 1 events added
- BC28-30unchanged
Neighbourhood 14 connected objects and pages
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
- runs on Table 5902 “Service Line”
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 65 “Discount Notification Mgt.” (1 call:
CalculateInvoiceDiscount → NotifyAboutMissingSetup)
Called by
- Codeunit 5988 “Serv-Documents Mgt.” (2 calls:
CalcInvDiscount → CalculateWithServHeader,UpdateServLinesOnPostOrder → CalculateWithServHeader) - Codeunit 5951 “Service-Disc. (Yes/No)” (1 call:
OnRun → (object)) - Codeunit 6461 “Serv. Document Print” (1 call:
CalcServDisc → (object)) - Codeunit 6462 “Serv. Test Report Print” (1 call:
CalcServDisc → (object)) - Codeunit 6484 “Serv. Undo Posting Mgt.” (1 call:
UpdateServLineCnsm → CalculateWithServHeader) - Page 5905 “Service Lines” (1 call:
CalcInvDisc → (object)) - Page 5914 “Service Order Statistics” (1 call:
OnOpenPage → (object)) - Page 6030 “Service Statistics” (1 call:
OnOpenPage → CalculateIncDiscForHeader) - Report 6001 “Batch Post Service Orders” (1 call:
CalculateInvoiceDiscount → (object)) - Report 6004 “Batch Post Service Invoices” (1 call:
CalculateInvoiceDiscount → (object)) - Report 6005 “Batch Post Service Cr. Memos” (1 call:
CalculateInvoiceDiscount → (object)) - Report 9091 “Combine Service Shipments” (1 call:
FinalizeServiceInvHeader → (object))
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.