ISServicePrice.TaxRateId

Description

ID of the short code of type "Tax rate".

Syntax

object.TaxRateId

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

Return Value

int

Example

Display the number of the services loaded on the basis of the selected filter, some information about the service price, including the information about tax rate.

Dim aFilter
Dim aService
Dim aServices
Dim aMessage
Dim aServicePrice

Set aFilter = Profile.CreateServicesFilter
aFilter.Description = "Injection"
set aServices = Profile.LoadServicesByFilter(aFilter)

aMessage = "Services Count = " & aServices.Count & vbNewLine

for each aService in aServices
  set aServicePrice = aService.GetServicePrice
  if aServicePrice is nothing then
    aMessage =  vbNewLine & "No Service Price"
  else
    aMessage = aMessage & vbNewLine & "-----------------------------" & vbNewLine &_
    "Agency Code: " & aServicePrice.AgencyCode & vbNewLine &_
    "Amount: " & aServicePrice.Amount & vbNewLine &_
    "Amount Method: " & aServicePrice.AmountMethod & vbNewLine &_
    "Based On: " & aServicePrice.BasedOn & vbNewLine &_
    "Bulk Code: " & aServicePrice.BulkCode & vbNewLine &_
    "Code Method: " & aServicePrice.CodeMethod & vbNewLine &_
    "Custom Fee Per Unit: " & aServicePrice.CustomFeePerUnit & vbNewLine &_
    "Default Quantity: " & aServicePrice.DefaultQuantity & vbNewLine &_
    "End Date: " & aServicePrice.EndDate & vbNewLine &_
    "Service ID: " & aServicePrice.ServiceID & vbNewLine &_
    "Distance: " & aServicePrice.Distance & vbNewLine &_
    "Start Date: " & aServicePrice.StartDate & vbNewLine &_
    "Tax Rate Id: " & aServicePrice.TaxRateId & vbNewLine &_
    "Unit Cost: " & aServicePrice.UnitCost & vbNewLine &_
    "Use Medicare 111111118: " & aServicePrice.UseMedicare111111118 
  end if                                                               
next

if aServicePrice.TaxRateId <> 0 then 
  set aShortCode = Profile.LoadShortCode(aServicePrice.TaxRateId)
    aMessage = aMessage & vbNewLine & "Tax rate: " & aShortCode.Description &_
      " (" & aShortCode.Code & ", ID: " & aShortCode.ID & ")" 
end if      
 
Profile.MsgBox(aMessage) 
Note:

In Profile Client v8 on User Interface ID cannot be found, but Tax Rate can be found in Maintain > Services > Edit the selected service > Financial > Tax Rate.

Version information

Added in v7.8.0
Access changed to read/write in v8.3.0