ISInvoice.CreatedDate

Description

The date when the invoice was created.

Syntax

object.CreatedDate

Part Attribute Type Description
object Required
The object always implements the ISInvoice interface
Restriction: This property is readonly.

Return Value

DateTime

Example

Display the number of the invoices loaded on the basis of the selected filter and some information about them, including the dates when they were created.

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 & vbNewLine & (i + 1) & ". " &_
    "Created Date: " & aInvoice.CreatedDate & vbNewLine &_
    "    ID: " & aInvoice.ID & vbNewLine &_
    "    GUID: " & aInvoice.GUID & vbNewLine &_
    "    Pos Code: " & aInvoice.PosCode & vbNewLine &_  
    "    Reference: " & aInvoice.Reference & vbNewLine &_  
    "    Message: " & aInvoice.Message & vbNewLine     
next    

Profile.MsgBox(aMessage)    
Note:

In Profile Client v8 on User Interface Created Date can be found in Financial > Audit Transactions > Invoices > Date.

Version information

Added in v8.5.0