SELECT
caseDeductionItemID,
deductionName,
thirdPartyConcernRoleID,
concernRoleID,
customerAccName,
customerAccNumber,
priority,
category,
businessStatus,
createdDate,
startDate,
endDate,
statusCode,
comments,
relatedCaseID,
caseID,
rate,
amount,
relatedObjectiveID,
rulesObjectiveID,
deductionType,
actionType,
caseNomineeID,
deductionID,
versionNo
INTO
:caseDeductionItemID,
:deductionName,
:thirdPartyConcernRoleID,
:concernRoleID,
:customerAccName,
:customerAccNumber,
:priority,
:category,
:businessStatus,
:createdDate,
:startDate,
:endDate,
:statusCode,
:comments,
:relatedCaseID,
:caseID,
:rate,
:amount,
:relatedObjectiveID,
:rulesObjectiveID,
:deductionType,
:actionType,
:caseNomineeID,
:deductionID,
:versionNo
FROM
CaseDeductionItem
WHERE caseID = :caseID
AND thirdPartyConcernRoleID = :thirdPartyConcernRoleID
AND statusCode = :statusCode
AND
(
endDate IS NULL
OR :currentDate IS NULL
OR endDate > :currentDate
)
|