Skip to content

KVSMEDContractSearchLib#

Procedures#

MatchContractLine(Code[30], Enum KVSMEDContractLineType, Code[20], Code[10], Code[10], Code[20], Date, Record KVSMEDContractVersionLine, Record KVSMEDContractVersionLine) : Boolean#

Summary: Function tries to find first suitable contract line. First search with period code, type, no, variant code, work type code and date. If nothing is found the contract line is searched by the contract finding no. If also nothing is found the contract line is searched by any contract finding item including the given item no.

procedure MatchContractLine(PeriodCode: Code[30]; KVSMEDContractLineType: Enum "KVSMEDContractLineType"; No: Code[20]; VariantCode: Code[10]; WorkTypeCode: Code[10]; ContractFindingNo: Code[20]; Date: Date; var TempKVSMEDContractVersionLine: Record "KVSMEDContractVersionLine" temporary; var KVSMEDContractVersionLineTo: Record "KVSMEDContractVersionLine"): Boolean

Parameters:

  • PeriodCode:
  • KVSMEDContractLineType:
  • No:
  • VariantCode:
  • WorkTypeCode:
  • ContractFindingNo:
  • Date:
  • TempKVSMEDContractVersionLine: The contract version line that matches the given parameters
  • KVSMEDContractVersionLineTo:

Returns: