#g4ppinv_setItemValue
*//////////////////////////////////////////////////////////////*
* #g4ppinv_setItemValue - Set Value of Item Record *
* *
* Input: *
* in_parameter (required) - The parameter name. *
* in_value (required) - The value of the parameter. *
* in_index (optional) - The index of the Item Record *
* to update. *
* *
* Output: *
* out_errMsg - The error message (if error exists). *
* *
* Returns: *
* -1 for error, 0 for no error. *
* *
* Settable Variables ([r]=required) *
* name - Item Name *
* description - Item Description *
* quantity - Quantity Ordered *
* date_provided_tz - Date Provided Timezone (Default GMT) *
* date_provided - Date Item Was Provided (YYYYMMDD) *
* uom - Unit of Measure *
* price_currency_code - Price Currency Code (Defaults USD) *
* price_value - Item Price *
* tax_name - Item Tax Name *
* tax_percent - Tax Percent (0 - 100) *
* discount_percent - Item Discount Percent (0 - 100) *
* discount_currency_code - Item Discount Currency Code *
* (Default USD) *
* discount_value - Item Discount Value *
* *
*//////////////////////////////////////////////////////////////*
D #g4ppinv_setItemValue...
D PR 10i 0
D in_parameter 256 Varying Value
D in_value 65535 Varying Value
D in_index 10i 0 Options(*NOPASS)
D out_errMsg 256 Options(*NOPASS)
#g4pp_setItemValue is used to set specific Item Record information for the current Item Index. You must call #g4ppinv_createItem() prior to setting any item values.
Returns: 0 for success, -1 for error.
Required Parameters:
- Parameter Name (input)
- Parameter Value (input)
Optional Parameters:
- Item Record Index (input) - Pass in an optional index to update a specific item record. Default is to update the current item record.
- Error Message (output) - Error message
Settable Variables:
- name - Item Name
- description - Item Description
- quantity - Quantity Ordered
- date_provided_tz - Date Provided Timezone
- date_provided - Date Item Was Provided (YYYYMMDD)
- uom - Unit of Measure
- price_currency_code - Price Currency Code (Defaults USD)
- price_value - Item Price
- tax_name - Item Tax Name
- tax_percent - Tax Percent (0 - 100)
- discount_percent - Item Discount Percent (0 - 100)
- discount_currency_code - Item Discount Currency Code
- discount_value - Item Discount Value