SELECT
instructLineItemID,
amount,
unprocessedAmount,
instructLineItemCategory,
instructionLineItemType,
InstructionLineItem.effectiveDate,
finInstructionID,
InstructionLineItem.concernRoleID,
creditDebitType,
InstructionLineItem.statusCode,
InstructionLineItem.caseID
INTO
:instructLineItemID,
:amount,
:unprocessedAmount,
:instructLineItemCategory,
:instructionLineItemType,
:effectiveDate,
:finInstructionID,
:concernRoleID,
:creditDebitType,
:statusCode,
:caseID
FROM
InstructionLineItem,
CaseHeader
WHERE
(
CaseHeader.integratedCaseID = :caseID
AND InstructionLineItem.caseID = CaseHeader.caseID
)
AND
(
InstructionLineItem.statusCode = :statusCode
OR :statusCode IS NULL
)
AND InstructionLineItem.effectiveDate >= :effectiveDateFrom
AND InstructionLineItem.effectiveDate <= :effectiveDateTo
|