ISInvoice.Rate

Description

The rate to be given on the invoice.

Syntax

object.Rate

Part Attribute Type Description
object Required
The object always implements the ISInvoice interface

Return Value

ISShortCode

Example

Display the number of the invoices loaded on the basis of the selected filter and some information about them, including the rates to be given on them.

Dim aPatient
Dim aFilter
Dim aInvoices, aInvoice
Dim aMessage
Dim i    

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)
  aMessage = aMessage & (i + 1) & ". " &_
    "Date: " & aInvoice.Date & vbNewLine &_
    "    ID: " & aInvoice.ID & vbNewLine &_
    "    Income Provider: " & aInvoice.IncomeProvider.FullName & vbNewLine 
  if not aInvoice.Rate is nothing then 
    aMessage = aMessage & "    Rate: " & aInvoice.Rate.Description & vbNewLine
  end if
next    

Profile.MsgBox(aMessage)     
Note:

In Profile Client v8 on User Interface Rate can be found in Financial > Audit Transactions > Invoices > Open the selected invoice > Open Detail > Rate.

Version information

Added in v7.8.0