QuickBooks Integrator 2020 Python Edition

Questions / Feedback?

expense_class_id Property

A reference to the class of this expense.

Syntax

def get_expense_class_id(expense_index: int) -> str: ...
def set_expense_class_id(expense_index: int, value: str) -> None: ...

Default Value

""

Remarks

A reference to the class of this expense. The class may be specified by either expense_class_name or expense_class_id. This property is only used if class tracking is being done with the QuickBooks company.

Name/Id Reference Properties

This property is used to reference an object that is already done within QuickBooks. This may be done with its full Name (this property) or its Id, for which a corresponding property is defined. If Name is used, it must contain the full name of the object referred to, as generated by QuickBooks. For hierarchically defined objects, such as Customers, this includes the names of parent objects, and the full name can be determined by reading the FullName special field.

Setting the value of this property will set the corresponding Id property to an empty string.

About Expenses:

In payment transactions (a Bill, a VendorCredit, a CCCharge, a CCCredit, or a Check) the payment may be tracked through Items and/or Expenses. A set of array properties is available for each. Expense lines are used to charge regularly occurring expenses such as freight charges, rent, etc., to an ExpenseAccount.

Expense line items consist of an ExpenseAccount (Name or Id), an expense_amount, an ExpenseClass (Name or Id), an ExpenseCustomer (Name or Id), and an expense_memo. The number of expense lines is given by ExpenseCount.

The expense_index parameter specifies the index of the item in the array. The size of the array is controlled by the expense_count property.

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 Python Edition - Version 20.0 [Build 7941]