ISInvoice.SplitProvider

Description

The provider that the income from the invoice is splitting with.

Syntax

object.SplitProvider

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

Return Value

int

Example

Display the number of the invoices loaded on the basis of the selected filter and some information about them, including the names of providers that the income from the invoices is splitting with.

Dim aPatient
Dim aFilter
Dim aInvoices, aInvoice
Dim aProvider
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)
  set aProvider = Profile.LoadProviderById(aInvoice.SplitProvider) 
  aMessage = aMessage & (i + 1) & ". " &_
    "Date: " & aInvoice.Date & vbNewLine &_
    "    ID: " & aInvoice.ID & vbNewLine &_
    "    GUID: " & aInvoice.GUID & vbNewLine &_
    "    Pos Code: " & aInvoice.PosCode & vbNewLine &_  
    "    Split Provider: " & aProvider.FullName & vbNewLine &_
    "    Split Percent: " & aInvoice.SplitPercent & vbNewLine 
next    

Profile.MsgBox(aMessage)   
Note:

In Profile Client v8 on User Interface Split Provider can be found in Financial > Audit Transactions > Invoices > Edit the selected invoice > Income split field.

Version information

Added in v7.8.0