Accounting Item Types from Invoice

I’m trying to get the accounting item type from my rental transactions so I can pull the associated values that are defined:


I am running through the invoice line items
For Each charge As InvoiceRentProduct In inv.InvoiceRentProducts

Is it possible to retrieve the name that corresponds in the Accounting Item Types, or is it always only rent? In my list I have rent discount and may possibly have others.

Thank you.

Hello. Everything in the InvoiceRentProducts are of type Rent and these are bound to the rent in the reports. If you’d like to get the other charges associated with an invoice you’ll want to iterate through the InvoiceUnitPrices and InvoiceUnitHourCollection. These have an accounting type and are how you get these charges.

OK - thank you for the clarification.