QuickBooks Integrator 2020 iOS Edition

Questions / Feedback?

LineItemGroups Class

Properties   Methods   Events   Configuration Settings   Errors  

Generates a group aggregate for use in another class's Update request.

Syntax

InQBLineItemGroups
InQBLineItemGroupsSwift

Remarks

There is not exposed a way to directly edit the contents of a line item group when submitting an Update request with a class from this package. You can change the Quantity, but you cannot change the line items contained inside the group line. The LineItemGroups class is used to parse a line item group aggregate. You may then make changes to the individual line items, and then call the GetGroupUpdateAggregate to return an xml aggregate containing your changes. This is then set to the Aggregate property of the line you wish to modify in your Update.

For instance, the following code changes the BillableStatus of all line items and line item groups in the Bill retrieved from QuickBooks.


Bill.Get("123456");
for (int i = 0; i < Bill1.LineItems.Count; i++) {
  if (!Bill.LineItems[i].GroupName.Equals("")) {	  // this is a group line
	  LineItemGroups.GroupType = gtBill;
	  LineItemGroups.ParseAggregate(Bill.LineItems[0].Aggregate);
		for (int j = 0; j < LineItemGroups.LineItems.Count) {
			LineItemGroups.LineItems[j].BillableStatus = bsHasBeenBilled;
		}
		LineItemGroups.QBXMLVersion = Bill.QBXMLVersion; // so that the proper fields are included in the update aggregate.		
		Bill1.LineItems[i].Aggregate = LineItemGroups.GetGroupUpdateAggregate();
	} else { // regular line item
	  Bill.LineItems[i].BillableStatus = bsHasBeenBilled;
  }
}
Bill.Update();

Property List


The following is the full list of the properties of the class with short descriptions. Click on the links for further details.

- descriptionA string description of the item group specified by GroupName or GroupId .
- groupIdReference to a group of line items.
- groupNameReference to a group of line items.
- groupTypeThe type of line item group aggregate to create.
- lineIdIdentification number of the transaction line group, used for Updates.
- itemCountThe number of records in the Item arrays.
- itemAggregate:(int)itemIndexContains an XML aggregate of the line item.
- itemAmount:(int)itemIndexLine item property: the total amount of this item.
- itemBillableStatus:(int)itemIndexLine item property: Billing status of this item.
- itemClassId:(int)itemIndexLine item property: Reference to the class of the item.
- itemClassName:(int)itemIndexLine item property: Reference to the class of the item.
- itemCost:(int)itemIndexLine item property: Unit cost for item.
- itemCustomerId:(int)itemIndexLine item property: A reference to customer for whom the item was ordered.
- itemCustomerName:(int)itemIndexLine item property: A reference to customer for whom the item was ordered.
- itemDescription:(int)itemIndexLine item property: Description of item.
- itemId:(int)itemIndexLine item property: Reference to the kind of item.
- itemName:(int)itemIndexLine item property: Reference to the kind of item.
- itemLineId:(int)itemIndexIdentification number of the transaction line, used for Updates.
- itemManuallyClosed:(int)itemIndexIndicates if the line item has been manually closed.
- itemOther1:(int)itemIndexStandard QuickBooks Custom Field available for transaction line items.
- itemOther2:(int)itemIndexStandard QuickBooks Custom Field available for transaction line items.
- itemOverrideAccountId:(int)itemIndexAn account which will override the default account for the line item.
- itemOverrideAccountName:(int)itemIndexAn account which will override the default account for the line item.
- itemPriceLevelId:(int)itemIndexLine Item property: Used to specify custom pricing for specific customers.
- itemPriceLevelName:(int)itemIndexLine Item property: Specify custom pricing for specific customers.
- itemQuantity:(int)itemIndexLine item property: Quantity of item or item group.
- itemRate:(int)itemIndexUnit rate of item.
- itemRatePercent:(int)itemIndexLine item property: A markup or discount percentage.
- itemServiceDate:(int)itemIndexLine item property: Date of service.
- itemTaxCodeId:(int)itemIndexLine item property: Sales tax information for this item.
- itemTaxCodeName:(int)itemIndexLine item property: Sales tax information for this item.
- itemUnitOfMeasure:(int)itemIndexUnit of measure describing the Quantity .
- printItemsInGroupIndicates whether line items will be shown on printed forms.
- QBXMLVersionThe version of QBXML used to generate the update aggregate.
- quantityThe quantity of this line item group.
- totalAmountThe total amount of this group of line items.
- unitOfMeasureUnit of measure describing the Quantity .

Method List


The following is the full list of the methods of the class with short descriptions. Click on the links for further details.

- configSets or retrieves a configuration setting.
- getGroupUpdateAggregateGenerates a group aggregate for use in another class's Update request.
- parseAggregateParses the aggregate returned from another class's ItemAggregate property.
- resetResets this class to its default state.

Event List


The following is the full list of the events fired by the class with short descriptions. Click on the links for further details.

- onErrorInformation about errors during data delivery.

Configuration Settings


The following is a list of configuration settings for the class with short descriptions. Click on the links for further details.

BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
ProcessIdleEventsWhether the class uses its internal event loop to process events when the main thread is idle.
SelectWaitMillisThe length of time in milliseconds the class will wait when DoEvents is called if there are no events to process.
UseInternalSecurityAPITells the class whether or not to use the system security libraries or an internal implementation.

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