Codeunit 5940 ServContractManagement
src/Layers/W1/BaseApp/Service/Contract/ServContractManagement.Codeunit.al61 procedures and triggers, in source order. Copyright (c) Microsoft Corporation. MIT
CreateInvoice line 89
- 95raisesOnBeforeCreateInvoice
- 97callsGetNextInvoicePeriod
- 98callsCreateInvoiceSetPostingDate
- 100callsCalcContractAmount
- 104callsCreateRemainingPeriodInvoice
- 107callsCreateServHeader
- 110callsGetNextInvoicePeriod
- 112callsCalcContractAmount
- 115callsCheckIfServiceExist
- 121raisesOnCreateInvoiceOnBeforeCreateAllServLines
- 123callsCreateAllServLines
- 125raisesOnAfterCreateInvoice
CreateInvoiceSetPostingDate line 128, local
CreateServiceLedgEntry line 138
- 169callsCheckServiceContractHeaderAmts
- 170callsTable 4 Currency InitRoundingPrecision
- 173callsInitServLedgEntry
- 174raisesOnCreateServiceLedgerEntryOnAfterInitServLedgEntry
- 183callsFilterServiceContractLine
- 190raisesOnCreateServiceLedgEntryOnPrepaidOnAfterServContractLineSetFilters
- 197raisesOnCreateServiceLedgerEntryOnBeforeLoopPeriods
- 206raisesOnCreateServiceLedgEntryOnAfterWDateLoop
- 212raisesOnCreateServiceLedgerEntryOnBeforeCheckServContractLineStartingDate
- 240callsPostPartialServLedgEntry
- 258raisesOnCreateServiceLedgEntryOnPrepaidOnBeforeCalcInvAmounts
- 259callsCalcInvAmounts
- 267raisesOnCreateServiceLedgerEntryOnBeforeInsertMultipleServLedgEntries
- 268callsInsertMultipleServLedgEntries
- 275callsPostPartialServLedgEntry
- 279callsCalcInvoicedToDate
- 280writesTable 5964 Service Contract Line Modify
- 286callsUpdateApplyUntilEntryNoInServLedgEntry
- 295callsFilterServiceContractLine
- 311raisesOnCreateServiceLedgEntryOnNotPrepaidOnAfterServContractLineSetFilters
- 334raisesOnCreateServiceLedgerEntryBeforeCountLineInvFrom
- 335callsCountLineInvFrom
- 337callsUpdateServLedgEntryAmounts
- 339callsUpdateServLedgEntryAmount
- 341callsCalcInvAmounts
- 342raisesOnCreateServiceLedgerEntryOnBeforeServLedgEntryInsert
- 344writesTable 5907 Service Ledger Entry Insert
- 347callsTable 5911 Service Mgt. Setup UseLegacyPosting
- 350callsTable 5907 Service Ledger Entry GetNextEntryNo
- 354callsCalcInvoicedToDate
- 355writesTable 5964 Service Contract Line Modify
- 359callsUpdateApplyUntilEntryNoInServLedgEntry
- 364raisesOnCreateServiceLedgEntryOnBeforeCalcCurrencyAmountRoundingPrecisionIsHandled
- 372callsSetServiceLedgerEntryUnitCost
- 377raisesOnCreateServiceLedgEntryOnAfterSetDiscountAmount
- 378callsCalcServLedgEntryDiscountPct
- 379callsUpdateServLedgEntryAmount
- 380writesTable 5907 Service Ledger Entry Modify
UpdateServLedgEntryAmounts line 384
CalcServLedgEntryDiscountPct line 402
- 406raisesOnBeforeCalcServLedgEntryDiscountPctIsHandled
CreateServHeader line 416
- 437callsTable 5900 Service Header SetHideValidationDialog
- 450raisesOnCreateServHeaderOnBeforeInitSeriesIsHandled
- 453callsCodeunit 310 No. Series GetNextNo
- 455callsInsertServiceHeader
- 461validatesTable 5900 Service Header Bill-to Customer No.
- 464validatesTable 5900 Service Header Ship-to Code
- 469raisesOnCreateServHeaderOnBeforeCheckBlockedCustOnDocsIsHandled
- 471callsTable 18 Customer CheckBlockedCustOnDocs
- 473callsCheckCustomerBusPostingGroup
- 491raisesOnCreateServHeaderOnAfterCopyFromCustomer
- 495validatesTable 5900 Service Header Ship-to Code
- 496validatesTable 5900 Service Header Posting Date
- 497validatesTable 5900 Service Header Document Date
- 513raisesOnCreateServHeaderOnBeforeCalcCurrencyFactor
- 515callsTable 330 Currency Exchange Rate ExchangeRate
- 517validatesTable 5900 Service Header Payment Terms Code
- 518validatesTable 5900 Service Header Payment Method Code
- 520validatesTable 5900 Service Header Direct Debit Mandate ID
- 523callsSetSalespersonCode
- 524validatesTable 5900 Service Header Location Code
- 525callsCodeunit 5700 User Setup Management GetLocation
- 529raisesOnBeforeServHeaderModify
- 530writesTable 5900 Service Header Modify
- 531callsCodeunit 447 Record Link Management CopyLinks
- 534callsTable 5936 Service Document Register InsertServiceSalesDocument
- 538raisesOnAfterCreateServHeader
InsertServiceHeader line 541, local
- 543raisesOnBeforeInsertServiceHeader
- 544writesTable 5900 Service Header Insert(true)
- 545raisesOnAfterInsertServiceHeader
CreateServiceLine line 548
- 560raisesOnBeforeCreateServiceLineIsHandled
- 600raisesOnCreateServiceLineOnBeforeServLedgEntryToServiceLine
- 601callsServLedgEntryToServiceLine
- 610raisesOnCreateServiceLineOnAfterServLedgEntryToServiceLine
- 614raisesOnCreateServiceLineOnBeforeServLedgEntryToServiceLine
- 615callsServLedgEntryToServiceLine
- 626callsTable 5936 Service Document Register InsertServiceSalesDocument
CreateDetailedServiceLine line 631
- 641raisesOnBeforeCreateDetailedServiceLineIsHandled
- 659raisesOnCreateDetailedServLineOnAfterSetFirstLineAndNewContract
- 679raisesOnCreateDetailedServLineOnBeforeServLineInsertFirstLine
- 680writesTable 5902 Service Line Insert
- 684raisesOnBeforeCreateServLineForNewContract
- 703raisesOnCreateDetailedServLineOnBeforeServLineInsertNewContract
- 704writesTable 5902 Service Line Insert
- 707raisesOnCreateDetailedServLineOnBeforeCreateDescriptionServiceLines
- 708callsCreateDescriptionServiceLines
- 710raisesOnAfterCreateDetailedServiceLine
CreateLastServiceLines line 713
- 722raisesOnBeforeCreateLastServLinesIsHandled
- 744writesTable 5902 Service Line Insert
- 745callsCodeunit 6003 Service Transfer Ext. Text ServCheckIfAnyExtText
- 746callsCodeunit 6003 Service Transfer Ext. Text InsertServExtText
- 748raisesOnBeforeLastServLineModify
- 749writesTable 5902 Service Line Modify
CreateOrGetCreditHeader line 754, local
- 783callsCodeunit 5700 User Setup Management GetLocation
- 785callsCodeunit 27 Confirm Management GetResponseOrDefault
- 802callsTable 5900 Service Header SetHideValidationDialog
- 815raisesOnCreateOrGetCreditHeaderOnBeforeInitSeriesIsHandled
- 818callsCodeunit 310 No. Series GetNextNo
- 820callsInsertServiceHeader
- 824validatesTable 5900 Service Header Bill-to Customer No.
- 831raisesOnCreateOrGetCreditHeaderOnBeforeCheckBlockedCustOnDocsIsHandled
- 833callsTable 18 Customer CheckBlockedCustOnDocs
- 835callsCheckCustomerBusPostingGroup
- 855raisesOnCreateOrGetCreditHeaderOnAfterCopyFromCustomer
- 857validatesTable 5900 Service Header Ship-to Code
- 859validatesTable 5900 Service Header Posting Date
- 861validatesTable 5900 Service Header Posting Date
- 864raisesOnCreateOrGetCreditHeaderOnBeforeCalcCurrencyFactor
- 866callsTable 330 Currency Exchange Rate ExchangeRate
- 874validatesTable 5900 Service Header Location Code
- 875callsCodeunit 5700 User Setup Management GetLocation
- 876raisesOnBeforeServHeaderModify
- 877writesTable 5900 Service Header Modify
- 880callsTable 5936 Service Document Register InsertServiceSalesDocument
- 884raisesOnAfterCreateOrGetCreditHeader
CreateCreditLine line 887, local
- 912raisesOnCreateCreditLineOnBeforeServLineHeadingInsert
- 913writesTable 5902 Service Line Insert
- 929validatesTable 5902 Service Line No.
- 930validatesTable 5902 Service Line Quantity
- 932validatesTable 5902 Service Line Unit Price
- 932callsAmountToFCY
- 933validatesTable 5902 Service Line Line Amount
- 933callsAmountToFCY
- 935validatesTable 5902 Service Line Unit Price
- 936validatesTable 5902 Service Line Line Amount
- 945validatesTable 5902 Service Line Line Discount Amount
- 947raisesOnCreateCreditLineOnBeforeCreateDimIsHandled
- 949callsTable 5902 Service Line CreateDimFromDefaultDim
- 950raisesOnBeforeServLineInsert
- 951writesTable 5902 Service Line Insert
CreateContractLineCreditMemo line 954
- 969raisesOnBeforeCreateContractLineCreditMemo
- 987callsCheckContractGroupAccounts
- 989callsFillTempServiceLedgerEntries
- 990callsTable 4 Currency InitRoundingPrecision
- 1004callsFindFirstPrepaidTransaction
- 1012raisesOnCreateContractLineCreditMemoOnBeforeCalcCreditAmount
- 1015callsCalcContractLineAmount
- 1019callsCreateOrGetCreditHeader
- 1020callsCreateAllCreditLines
- 1023raisesOnCreateContractLineCreditMemoOnAfterCreateAllCreditLines
- 1029writesTable 5964 Service Contract Line Modify
- 1032raisesOnAfterCreateContractLineCreditMemo
CheckContractGroupAccounts line 1035
- 1042raisesOnBeforeCheckContractGroupAccountsIsHandled
CreateAllCreditLines line 1074, local
- 1092callsTable 4 Currency InitRoundingPrecision
- 1110raisesOnCreateAllCreditLinesCaseElse
- 1126raisesOnCreateAllCreditLinesOnAfterDetermineOldWDate
- 1138callsLookUpAmountToCredit
- 1149callsCalcContractLineAmount
- 1151callsCalcContractLineAmount
- 1153callsCalcContractLineAmount
- 1155callsCreateCreditLine
NoOfMonthsAndMPartsInPeriod line 1222
- 1230raisesOnBeforeNoOfMonthsAndMPartsInPeriodIsHandled
- 1242callsGetDateExpression
CalcContractAmount line 1259
- 1269raisesOnBeforeCalcContractAmountIsHandled
- 1273callsTable 4 Currency InitRoundingPrecision
- 1294raisesOnCalcContractAmountOnAfterServContractLineSetFilters
- 1298callsFindLinePeriodStartsByInvoicedToDate
- 1311callsCalcContractLineAmount
- 1321callsNoOfMonthsAndMPartsInPeriod
FindLinePeriodStartsByInvoicedToDate line 1326, local
- 1331raisesOnBeforeFindLinePeriodStartsByInvoicedToDateIsHandled
CalcContractLineAmount line 1341
CreateRemainingPeriodInvoice line 1348
- 1355raisesOnBeforeCreateRemainingPeriodInvoice
- 1376raisesOnCreateRemainingPeriodInvoiceOnAfterServContractLineSetFilters
- 1389callsConfirmCreateServiceInvoiceForPeriod
- 1390callsCreateServHeader
- 1394validatesTable 5965 Service Contract Header Last Invoice Date
- 1397validatesTable 5965 Service Contract Header Last Invoice Period End
- 1399callsCreateRemainingPeriodInvoiceServiceLines
- 1401writesTable 5965 Service Contract Header Modify
- 1404raisesOnAfterCreateRemainingPeriodInvoice
CreateRemainingPeriodInvoiceServiceLines line 1408, local
- 1415raisesOnBeforeCreateRemainingPeriodInvoiceServiceLinesIsHandled
- 1424raisesOnCreateRemainingPeriodInvoiceOnAfterServContractLineSetFilters
- 1428callsCreateDetailedServiceLine
- 1432callsCreateDetailedServiceLine
- 1436callsCreateServiceLedgEntry
- 1447callsCreateServiceLine
- 1452callsCreateHeadingServiceLine
- 1456callsCreateServiceLedgEntry
- 1460callsCreateServiceLine
ConfirmCreateServiceInvoiceForPeriod line 1466, local
- 1472raisesOnBeforeConfirmCreateServiceInvoiceForPeriodIsHandled
- 1476callsCodeunit 27 Confirm Management GetResponseOrDefault
InitCodeUnit line 1479
- 1488callsCodeunit 9500 Sequence No. Mgt. ClearSequenceNoCheck
- 1490callsTable 5911 Service Mgt. Setup UseLegacyPosting
- 1497callsTable 5907 Service Ledger Entry GetNextEntryNo
- 1507callsTable 5934 Service Register GetNextEntryNo
- 1507callsTable 5911 Service Mgt. Setup UseLegacyPosting
- 1518raisesOnAfterInitCodeUnit
FinishCodeunit line 1521
- 1524writesTable 5934 Service Register Insert
- 1526raisesOnAfterFinishCodeunit
CopyCheckSCDimToTempSCDim line 1529
CheckDimComb line 1537, local
- 1539callsCodeunit 408 DimensionManagement CheckDimIDComb
- 1543callsCodeunit 408 DimensionManagement GetDimCombErr
CheckDimValuePosting line 1546, local
- 1553raisesOnBeforeCheckDimValuePostingIsHandled
- 1566callsCodeunit 408 DimensionManagement CheckDimValuePosting
- 1569callsCodeunit 408 DimensionManagement GetDimValuePostingErr
CreateAllServLines line 1573
- 1584callsGetNextInvoicePeriod
- 1589raisesOnCreateAllServLinesOnAfterServContractLineSetFilters
- 1591callsCreateHeadingServiceLine
- 1594raisesOnCreateAllServLinesOnBeforeServContractLineLoop
- 1596callsCheckServiceItemBlockedForAll
- 1597callsCheckItemServiceBlocked
- 1608callsCreateDetailedServiceLine
- 1609raisesOnCreateAllServLinesOnAfterCreateDetailedServLine
- 1612callsCheckAndCreateServiceLinesForPartOfTheMonth
- 1620callsCreateServiceLedgEntry
- 1625raisesOnCreateAllServLinesOnAfterCalcShouldCraeteServiceApplyEntry
- 1627callsCreateServiceLine
- 1629callsCountLineInvFrom
- 1630raisesOnCreateAllServLinesOnAfterCreateServiceLine
- 1633raisesOnCreateAllServLinesOnBeforeCreateLastServiceLines
- 1634callsCreateLastServiceLines
- 1636validatesTable 5965 Service Contract Header Last Invoice Date
- 1638writesTable 5965 Service Contract Header Modify
- 1640raisesOnAfterCreateAllServLines
GetAffectedItemsOnContractChange line 1657
- 1666writesTable 5965 Service Contract Header DeleteAll
- 1667writesTable 5940 Service Item DeleteAll
- 1677writesTable 5965 Service Contract Header Insert
- 1683raisesOnGetAffectedItemsOnContractChangeOnAfterServContractLineSetFilters
- 1688callsTable 5940 Service Item ErrorIfBlockedForServiceContract
- 1690writesTable 5940 Service Item Insert
- 1694raisesOnGetAffectedItemsOnContractChangeOnAfterTempServItemGetOrInsertIsHandled
- 1702raisesOnGetAffectedItemsOnContractChangeOnBeforeOnFindServContractLine2
ChangeCustNoOnServContract line 1724
- 1745callsTable 5967 Contract Change Log LogContractChange
- 1748callsCodeunit 6489 Serv. Check Credit Limit OnNewCheckRemoveCustomerNotifications
- 1751callsTable 5965 Service Contract Header SetHideValidationDialog
- 1753raisesOnChangeCustNoOnServContractOnAfterGetCustomerIsHandled
- 1756validatesTable 5965 Service Contract Header Bill-to Customer No.
- 1758validatesTable 5965 Service Contract Header Bill-to Customer No.
- 1759callsCodeunit 5700 User Setup Management GetRespCenter
- 1760callsTable 5965 Service Contract Header UpdateShiptoCode
- 1762callsCodeunit 6489 Serv. Check Credit Limit ServiceContractHeaderCheck
- 1766callsProcessShiptoCodeChange
- 1768callsTable 5965 Service Contract Header UpdateServZone
- 1769callsTable 5965 Service Contract Header UpdateCont
- 1770callsTable 5965 Service Contract Header UpdateCust
- 1774callsTable 5965 Service Contract Header CreateDimFromDefaultDim
- 1783writesTable 5964 Service Contract Line Modify
- 1786raisesOnBeforeServContractHeaderModify
- 1787writesTable 5965 Service Contract Header Modify
ProcessShiptoCodeChange line 1790, local
- 1794callsTable 5967 Contract Change Log LogContractChange
- 1798callsTable 5965 Service Contract Header UpdateShiptoCode
- 1805raisesOnAfterProcessShiptoCodeChange
ChangeCustNoOnServItem line 1808
- 1815raisesOnBeforeChangeCustNoOnServItemIsHandled
- 1823callsCodeunit 5906 ServLogManagement ServItemCustChange
- 1824callsCodeunit 5906 ServLogManagement ServItemShipToCodeChange
- 1827callsCodeunit 5906 ServLogManagement ServItemShipToCodeChange
- 1828writesTable 5940 Service Item Modify
- 1830raisesOnAfterChangeCustNoOnServItem
CreateHeadingServiceLine line 1833
- 1841raisesOnBeforeCreateHeadingServiceLineIsHandled
- 1873raisesOnCreateHeadingServLineOnBeforeServLineInsert
- 1874writesTable 5902 Service Line Insert
LookupServItemNo line 1877
- 1892raisesOnLookupServItemNoOnBeforeFilterByCustomerNoIsHandled
- 1902raisesOnLookupServItemNoOnAfterServItemSetFilters
- 1907validatesTable 5964 Service Contract Line Service Item No.
AmountToFCY line 1911
- 1920callsTable 330 Currency Exchange Rate ExchangeAmtLCYToFCY
FillTempServiceLedgerEntries line 1936, local
LookUpAmountToCredit line 1962, local
- 1985writesTable 5907 Service Ledger Entry Delete
ServLedgEntryToServiceLine line 2009, local
- 2014raisesOnBeforeServLedgEntryToServiceLineIsHandled
- 2032callsInitServiceLineAppliedGLAccount
- 2033validatesTable 5902 Service Line Quantity
- 2057validatesTable 5902 Service Line Unit Price
- 2058callsAmountToFCY
- 2059validatesTable 5902 Service Line Line Amount
- 2060callsAmountToFCY
- 2062validatesTable 5902 Service Line Unit Price
- 2063validatesTable 5902 Service Line Line Amount
- 2069raisesOnServLedgEntryToServiceLineOnBeforeDimSetIsHandled
- 2078raisesOnServLedgEntryToServiceLineOnBeforeServLineInsertIsHandled
- 2082writesTable 5902 Service Line Insert
- 2083callsTable 5902 Service Line CreateDimFromDefaultDim
InitServiceLineAppliedGLAccount line 2086, local
- 2091raisesOnBeforeInitServiceLineAppliedGLAccountIsHandled
- 2096validatesTable 5902 Service Line No.
CheckMultipleCurrenciesForCustomers line 2099
- 2108raisesOnBeforeCheckMultipleCurrenciesForCustomersIsHandled
- 2129callsShownCurrencyText
- 2130callsShownCurrencyText
InitServLedgEntry line 2158
GetInvoicePeriodText line 2185
FilterServiceContractLine line 2205
CalcServLedgEntryAmounts line 2228, local
- 2252callsSetServiceLedgerEntryUnitCost
- 2257callsCalcServLedgEntryDiscountPct
UpdateServLedgEntryAmount line 2264
- 2267callsAmountToFCY
CreateDescriptionServiceLines line 2286, local
InsertDescriptionServiceLine line 2308, local
- 2313raisesOnBeforeInsertDescriptionServiceLineIsHandled
- 2318callsTable 5902 Service Line GetLineNo
- 2320raisesOnInsertDescriptionServiceLineOnBeforeServiceLineInsert
- 2321writesTable 5902 Service Line Insert
UpdateApplyUntilEntryNoInServLedgEntry line 2324, local
- 2330raisesOnBeforeUpdateApplyUntilEntryNoInServLedgEntryIsHandled
- 2337writesTable 5907 Service Ledger Entry Modify
PostPartialServLedgEntry line 2341, local
- 2348raisesOnBeforePostPartialServLedgEntry
- 2352callsIsYearContract
- 2356callsCalcServLedgEntryAmounts
- 2360callsCalcAndSetRemainingAmount
- 2363callsSetServLedgEntryAmounts
- 2367callsUpdateServLedgEntryAmount
- 2371raisesOnPostPartialServLedgEntryOnBeforeServLedgEntryInsert
- 2372writesTable 5907 Service Ledger Entry Insert
- 2374callsTable 5911 Service Mgt. Setup UseLegacyPosting
- 2377callsTable 5907 Service Ledger Entry GetNextEntryNo
SetServLedgEntryAmounts line 2381
CalcInvAmounts line 2395
- 2400raisesOnBeforeCalcInvAmountsIsHandled
- 2405callsCalcContractLineAmount
- 2407callsCalcContractLineAmount
- 2409callsCalcContractLineAmount
- 2411callsCalcContractLineAmount
InsertMultipleServLedgEntries line 2414
- 2423raisesOnBeforeInsertMultipleServLedgEntries
- 2432raisesOnInsertMultipleServLedgEntriesOnUpdateDateFieldsBeforeCalcNonDistrAmount
- 2435callsCalcContractLineAmount
- 2437callsCalcContractLineAmount
- 2439callsCalcContractLineAmount
- 2441callsCalcContractLineAmount
- 2449raisesOnInsertMultipleServLedgEntriesOnBeforeUpdatePaymentsCount
- 2461raisesOnInsertMultipleServLedgEntriesOnBeforeSetServLedgEntryAmountsIsHandled
- 2463callsSetServLedgEntryAmounts
- 2478callsUpdateServLedgEntryAmount
- 2482raisesOnInsertMultipleServLedgEntriesOnBeforeServLedgEntryInsertIsHandled
- 2486writesTable 5907 Service Ledger Entry Insert
- 2488callsTable 5911 Service Mgt. Setup UseLegacyPosting
- 2491callsTable 5907 Service Ledger Entry GetNextEntryNo
- 2493raisesOnInsertMultipleServLedgEntriesOnAfterSetDueDate
SetSalespersonCode line 2497, local
- 2502raisesOnBeforeSetSalespersonCodeIsHandled
- 2508callsTable 13 Salesperson/Purchaser VerifySalesPersonPurchaserPrivacyBlocked
CheckAndCreateServiceLinesForPartOfTheMonth line 2514, local
GetDateExpression line 2551, local
- 2555callsCodeunit 10 Type Helper IsLeapYear
CheckCustomerBusPostingGroup line 2561, local
- 2568raisesOnBeforeCheckCustomerIsHandled
CalcAndSetRemainingAmount line 2575, local
CheckServiceItemBlockedForServiceContract line 2608
- 2617callsTable 5940 Service Item ErrorIfBlockedForServiceContract
CheckServiceItemBlockedForAll line 2620
- 2626raisesOnBeforeCheckServiceItemBlockedForAllIsHandled
- 2635callsTable 5940 Service Item ErrorIfBlockedForAll
CheckItemServiceBlocked line 2640
- 2647raisesOnBeforeCheckItemServiceBlockedIsHandled