Codeunit 5940 ServContractManagement

Base Application, Microsoft.Service.Contract

45 procedures

ProcedureVersions
CreateInvoice(ServiceContractHeader: Record "Service Contract Header"): Code[20]17-29
CreateServHeader(ServContract2: Record "Service Contract Header"; PostDate: Date; ContractExists: Boolean): Code[20]17-29
CreateContractLineCreditMemo(var FromServiceContractLine: Record "Service Contract Line"; Deleting: Boolean): Code[20]17-29
CheckContractGroupAccounts(ServContractHeader: Record "Service Contract Header")17-29
FindFirstPrepaidTransaction(ContractNo: Code[20]): Date17-29
GetNextInvoicePeriod(InvoicedServContractHeader: Record "Service Contract Header"; var InvFrom: Date; var InvTo: Date)17-29
NoOfDayInYear(InputDate: Date): Integer17-29
NoOfMonthsAndDaysInPeriod(Day1: Date; Day2: Date; var NoOfMonthsInPeriod: Integer; var NoOfDaysInPeriod: Integer)17-29
NoOfMonthsAndMPartsInPeriod(Day1: Date; Day2: Date): Decimal17-29
CalcContractAmount(ServContractHeader: Record "Service Contract Header"; PeriodStarts: Date; PeriodEnds: Date): Decimal17-29
CalcContractLineAmount(AnnualAmount: Decimal; PeriodStarts: Date; PeriodEnds: Date): Decimal17-29
CreateRemainingPeriodInvoice(var CurrServContract: Record "Service Contract Header"): Code[20]17-29
InitCodeUnit()17-29
FinishCodeunit()17-29
CopyCheckSCDimToTempSCDim(ServContract: Record "Service Contract Header")17-29
CreateAllServLines(InvNo: Code[20]; ServContractToInvoice: Record "Service Contract Header")17-29
CheckIfServiceExist(ServContractHeader: Record "Service Contract Header"): Boolean17-29
ChangeCustNoOnServContract(NewCustomertNo: Code[20]; NewShipToCode: Code[10]; ServContractHeader: Record "Service Contract Header")17-29
ChangeCustNoOnServItem(NewCustomertNo: Code[20]; NewShipToCode: Code[10]; ServItem: Record "Service Item")17-29
LookupServItemNo(var ServiceContractLine: Record "Service Contract Line")17-29
CheckMultipleCurrenciesForCustomers(var ServiceContractHeader: Record "Service Contract Header")17-29
GetInvoicePeriodText(InvoicePeriod: Enum "Service Contract Header Invoice Period"): Text[4]17-29
CreateServiceLedgEntry(ServHeader2: Record "Service Header"; ContractType: Enum "Service Contract Type"; ContractNo: Code[20]; InvFromDate: Date; InvToDate: Date; SigningContract: Boolean; AddingNewLines: Boolean; LineNo: Integer): Integernew in 19
UpdateServLedgEntryAmounts(var ServContractLine: Record "Service Contract Line"; var Currency: Record Currency; var InvRoundedAmount: array[4] of Decimal; LineInvFrom: Date; InvTo: Date)new in 19
CalcServLedgEntryDiscountPct(var ServiceLedgerEntry: Record "Service Ledger Entry")new in 19
CreateServiceLine(ServHeader: Record "Service Header"; ContractType: Enum "Service Contract Type"; ContractNo: Code[20]; InvFromDate: Date; InvToDate: Date; ServiceApplyEntry: Integer; SignningContract: Boolean)new in 19
CreateDetailedServiceLine(ServHeader: Record "Service Header"; ServContractLine: Record "Service Contract Line"; ContractType: Enum "Service Contract Type"; ContractNo: Code[20])new in 19
CreateLastServiceLines(ServHeader: Record "Service Header"; ContractType: Enum "Service Contract Type"; ContractNo: Code[20])new in 19
GetAffectedItemsOnContractChange(ContractNoToBeChanged: Code[20]; var TempServContract: Record "Service Contract Header"; var TempServItem: Record "Service Item"; Recursive: Boolean; ContractTypeToBeChanged: Enum "Service Contract Type")new in 19
CreateHeadingServiceLine(ServHeader: Record "Service Header"; ContractType: Enum "Service Contract Type"; ContractNo: Code[20])new in 19
AmountToFCY(AmountLCY: Decimal; var ServHeader3: Record "Service Header"): Decimalnew in 19
IsYearContract(ContractType: Enum "Service Contract Type"; ContrNo: Code[20]): Booleannew in 19
CheckServiceContractHeaderAmts(ServiceContractHeader: Record "Service Contract Header")new in 19
SetServiceLedgerEntryUnitCost(var ServiceLedgerEntry: Record "Service Ledger Entry")new in 19
InitServLedgEntry(var ServLedgEntry: Record "Service Ledger Entry"; ServContractHeader: Record "Service Contract Header"; DocNo: Code[20])new in 19
FilterServiceContractLine(var ServContractLine: Record "Service Contract Line"; ContractNo: Code[20]; ContractType: Enum "Service Contract Type"; LineNo: Integer)new in 19
UpdateServLedgEntryAmount(var ServLedgEntry: Record "Service Ledger Entry"; var ServHeader: Record "Service Header")new in 19
CalcInvoicedToDate(var ServContractLine: Record "Service Contract Line"; InvFrom: Date; InvTo: Date)new in 19
SetServLedgEntryAmounts(var ServLedgEntry: Record "Service Ledger Entry"; var EntryAmount: array[4] of Decimal; Amount: Decimal; UnitPrice: Decimal; CostAmount: Decimal; DiscAmount: Decimal; AmtRoundingPrecision: Decimal)new in 19
CalcInvAmounts(var InvAmount: array[4] of Decimal; ServContractLine: Record "Service Contract Line"; InvFrom: Date; InvTo: Date)new in 19
InsertMultipleServLedgEntries(var NoOfPayments: Integer; var DueDate: Date; var NonDistrAmount: array[4] of Decimal; var InvRoundedAmount: array[4] of Decimal; var ServHeader: Record "Service Header"; InvFrom: Date; NextInvDate: Date; AddingNewLines: Boolean; CountOfEntryLoop: Integer; ServContractLine: Record "Service Contract Line"; AmountRoundingPrecision: Decimal)new in 19
CheckCustomerCurrencyCombination(var ServiceContractHeader: Record "Service Contract Header")new in 23
CheckServiceItemBlockedForServiceContract(var ServiceContractLine: Record "Service Contract Line")new in 24changed in 29
CheckServiceItemBlockedForAll(var ServiceContractLine: Record "Service Contract Line")new in 24changed in 29
CheckItemServiceBlocked(var ServiceContractLine: Record "Service Contract Line")new in 24changed in 29