InventoryTotalValue Property
The total value of this inventory item.
Syntax
ANSI (Cross Platform) char* GetInventoryTotalValue();
int SetInventoryTotalValue(const char* lpszInventoryTotalValue); Unicode (Windows) LPWSTR GetInventoryTotalValue();
INT SetInventoryTotalValue(LPCWSTR lpszInventoryTotalValue);
@property (nonatomic,readwrite,assign,getter=inventoryTotalValue,setter=setInventoryTotalValue:) NSString* inventoryTotalValue; - (NSString*)inventoryTotalValue; - (void)setInventoryTotalValue:(NSString*)newInventoryTotalValue;
#define PID_ITEM_INVENTORYTOTALVALUE 7 INQB_EXTERNAL void* INQB_CALL InQB_Item_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); INQB_EXTERNAL int INQB_CALL InQB_Item_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
"0"
Remarks
The total dollar value for the number of items specified by InventoryQuantityOnHand. If InventoryTotalValue is included, InventoryQuantityOnHand must be non-zero.
If both InventoryQuantityOnHand and PurchaseCost are included, then total value in QuickBooks will be set to InventoryQuantityOnHand times PurchaseCost, regardless of what InventoryTotalValue is explicitly set to (ie: The contents of InventoryTotalValue are ignored).
Please note that this is a write-only property, and it's value will not be returned after a Get. Add, or Modify.
This property is only applicable for Inventory Items (ItemType = itInventory).
The amount should be formatted as a string in dollars.
Data Type
String