ItemAmount Property
Line item property: the total amount of this item.
Syntax
ANSI (Cross Platform) char* GetItemAmount(int iItemIndex);
int SetItemAmount(int iItemIndex, const char* lpszItemAmount); Unicode (Windows) LPWSTR GetItemAmount(INT iItemIndex);
INT SetItemAmount(INT iItemIndex, LPCWSTR lpszItemAmount);
- (NSString*)itemAmount:(int)itemIndex; - (void)setItemAmount:(int)itemIndex:(NSString*)newItemAmount;
#define PID_ITEMRECEIPT_ITEMAMOUNT 20 INQB_EXTERNAL void* INQB_CALL InQB_ItemReceipt_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); INQB_EXTERNAL int INQB_CALL InQB_ItemReceipt_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal); INQB_EXTERNAL int INQB_CALL InQB_ItemReceipt_CheckIndex(void *lpObj, int propid, int arridx);
Default Value
""
Remarks
Line item property: the total amount of this item.
This property represents the total amount of a transaction line. If ItemRate, ItemCost and/or ItemQuantity are specified the ItemAmount will be automatically computed by QuickBooks.
Whether ItemRate or ItemCost is used will depend on the transaction type. ItemRate is available for CreditMemo, Estimate, Invoice, PurchaseOrder, SalesOrder, and SalesReceipt transactions while ItemCost is available for Bill, CCCharge, CCCredit, Check, ItemReceipt, and VendorCredit transactions.
The amount should be formatted as a string in dollars.
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