SELECT
serviceInvoiceLineItemID,
serviceInvoiceID,
referenceNo,
externalReferenceNo,
saReferenceNo,
serviceID,
serviceDateFrom,
serviceDateTo,
noOfUnits,
unitAmount,
amountInvoiced,
caseReferenceNo,
caseID,
clientReferenceNo,
clientID,
clientFirstName,
clientLastName,
clientDOB,
providerReferenceNo,
providerID,
providerName,
payeeReferenceNo,
payeeID,
payeeName,
payeeNameUpper,
status,
serviceAuthorizationLIID,
expProInd,
allowDuplicateSILI,
validityStatus,
versionNo
INTO
:serviceInvoiceLineItemID,
:serviceInvoiceID,
:referenceNo,
:externalReferenceNo,
:saReferenceNo,
:serviceID,
:serviceDateFrom,
:serviceDateTo,
:noOfUnits,
:unitAmount,
:amountInvoiced,
:caseReferenceNo,
:caseID,
:clientReferenceNo,
:clientID,
:clientFirstName,
:clientLastName,
:clientDOB,
:providerReferenceNo,
:providerID,
:providerName,
:payeeReferenceNo,
:payeeID,
:payeeName,
:payeeNameUpper,
:status,
:serviceAuthorizationLIID,
:expProInd,
:allowDuplicateSILI,
:validityStatus,
:versionNo
FROM ServiceInvoiceLineItem
WHERE serviceAuthorizationLIID= :serviceAuthorizationLIID
AND (status = :status1 OR status = :status2)
|