KVSMEDProcessLib#
Procedures#
CollectProcessPeriods(Record KVSMEDProcessFilter, Date, Record KVSMEDProcessPeriod) :#
Summary: Collect process periods lines for calls and processes
procedure CollectProcessPeriods(KVSMEDProcessFilter: Record "KVSMEDProcessFilter"; EndingDate: Date; var TempKVSMEDProcessPeriod: Record "KVSMEDProcessPeriod" temporary):
Parameters:
KVSMEDProcessFilter
:EndingDate
:TempKVSMEDProcessPeriod
:
CollectContractLines(Code[20], Date, Enum KVSMEDContractFindingType, Record KVSMEDProcessPeriod, Record KVSMEDContractVersionHeader, Record KVSMEDContractVersionLine, Text) :#
Summary: Collect contract lines for contracts in process periods
procedure CollectContractLines(CustomerNo: Code[20]; Date: Date; Type: Enum "KVSMEDContractFindingType"; var TempKVSMEDProcessPeriod: Record "KVSMEDProcessPeriod" temporary; var TempKVSMEDContractVersionHeader: Record "KVSMEDContractVersionHeader" temporary; var KVSMEDContractVersionLine: Record "KVSMEDContractVersionLine" temporary; var Comment: Text):
Parameters:
CustomerNo
:Date
:Type
: 0:New, 1:Add, 2:Extend, 3:Call by Call, 4:Call Additional, 9:Maintenance, 10:RepairTempKVSMEDProcessPeriod
: Process periods to collect contract lines forTempKVSMEDContractVersionHeader
: Contract headers foundKVSMEDContractVersionLine
: Contract version lines foundComment
:
CreateProcessPeriod(Record KVSMEDProcess, Record KVSMEDProcessPeriod, Code[15], Code[4], Code[30]) :#
Summary: Creates a new process period for a given contract. The period is initialized and its participant fields are filled with data from the contract number, contract version number, and contract period. The process period is then validated and modified accordingly.
procedure CreateProcessPeriod(KVSMEDProcess: Record "KVSMEDProcess"; var KVSMEDProcessPeriod: Record "KVSMEDProcessPeriod"; ContractNo: Code[15]; ContractVersionNo: Code[4]; ContractPeriod: Code[30]):
Parameters:
KVSMEDProcess
: The process by which the process period is initializedKVSMEDProcessPeriod
: The created process period record which is already inserted into the databaseContractNo
:ContractVersionNo
:ContractPeriod
:
UpdateBillingScheduleForProcessPeriod(Record KVSMEDProcessPeriod) :#
Summary: Updates the billing schedule for a given process period. If the use of billing schedule is not enabled, the procedure will exit. Otherwise, it creates or updates the billing schedule lines for the process period using the Billing Schedule Library.
procedure UpdateBillingScheduleForProcessPeriod(KVSMEDProcessPeriod: Record "KVSMEDProcessPeriod"):
Parameters:
KVSMEDProcessPeriod
: