ID of the referral associated with the invoice line.
object.ReferralId
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISInvoiceLine interface |
int
Display the number of the invoices loaded on the basis of the selected filter and some information about the invoice lines, including the creation dates of the referrals associated with them.
Dim aPatient
Dim aFilter
Dim aInvoices, aInvoice
Dim aInvoiceLines, aInvoiceLine
Dim aReferral
Dim aMessage
Dim i, j
Set aPatient = Profile.SelectPatient
set aFilter = Profile.CreateInvoiceFilter
aFilter.PatientId = aPatient.ID
set aInvoices = aFilter.Load
aMessage = "Invoices Count = " & aInvoices.Count & vbNewLine
for i = 0 to aInvoices.Count - 1
set aInvoice = aInvoices.Items(i)
set aInvoiceLines = aInvoice.InvoiceLines
aMessage = aMessage & vbNewLine & (i + 1) & ". " &_
"Date: " & aInvoice.Date & vbNewLine &_
" ID: " & aInvoice.ID & vbNewLine &_
" Invoice Lines Count: " & aInvoiceLines.Count & vbNewLine
for j = 0 to aInvoiceLines.Count - 1
set aInvoiceLine = aInvoiceLines.Item(j)
set aReferral = Profile.LoadReferral(aInvoiceLine.ReferralId)
aMessage = aMessage & (i + 1) & "." & (j + 1) &_
" -Description: " & aInvoiceLine.Description & vbNewLine &_
" -DateTime From: " & aInvoiceLine.DateTimeFrom & vbNewLine &_
" -DateTime To: " & aInvoiceLine.DateTimeTo & vbNewLine
if aInvoiceLine.ReferralId <> 0 then
aMessage = aMessage & " -Referral: " & aReferral.CreatedOn & vbNewLine
end if
next 'j
next 'i
Profile.MsgBox(aMessage)
In Profile Client v8 on User Interface Referral ID cannot be found, but Referral can be found in
.