ItemQuantity Property
Line item property: Quantity of item or item group.
Syntax
ANSI (Cross Platform) char* GetItemQuantity(int iItemIndex);
int SetItemQuantity(int iItemIndex, const char* lpszItemQuantity); Unicode (Windows) LPWSTR GetItemQuantity(INT iItemIndex);
INT SetItemQuantity(INT iItemIndex, LPCWSTR lpszItemQuantity);
- (NSString*)itemQuantity:(int)itemIndex; - (void)setItemQuantity:(int)itemIndex:(NSString*)newItemQuantity;
#define PID_CCCHARGE_ITEMQUANTITY 34 INQB_EXTERNAL void* INQB_CALL InQB_CCCharge_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); INQB_EXTERNAL int INQB_CALL InQB_CCCharge_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal); INQB_EXTERNAL int INQB_CALL InQB_CCCharge_CheckIndex(void *lpObj, int propid, int arridx);
Default Value
""
Remarks
Line item property: Quantity of item or item group.
The quantity of the Item specified in this line.
If ItemQuantity and only one of ItemCost, ItemRate, or ItemAmount are specified, QuickBooks will automatically calculate the other.
This property is a String type in order to allow setting fractional quantities. Setting this property with non-numeric data will cause an error. Correct usage of this property is shown below:
class.Quantity = "3.5"
Leave this property blank and no quantity will be sent to QuickBooks.
The ItemIndex parameter specifies the index of the item in the array. The size of the array is controlled by the ItemCount property.
This property is not available at design time.
Data Type
String