25 vAPI_add_edit_nonstock
Add/edit a non-stock item
Inputs:
| Input Name |
Required |
Type |
Max Length |
Details |
| $arg_array |
YES |
ASSOC |
-- |
Details follow: |
| $arg_array / company_id |
YES |
INT |
-- |
references: company_master.company_id |
| $arg_array / employee_id |
YES |
INT |
-- |
references: employee_master.employee_id |
| $arg_array / vendor_code |
YES |
STRING |
25 |
references: vendor_master.vendor_code |
| $arg_array / item_code |
YES |
STRING |
32 |
references: nonstock_master.item_code |
| $arg_array / item_type |
YES |
ENUM |
-- |
L: Labor |
|
|
|
|
M: Comment |
|
|
|
|
N: Non-stock |
|
|
|
|
S: Special charge |
| $arg_array / description |
YES |
STRING |
75 |
references: nonstock_master.description |
| $arg_array / product_class |
YES |
INT |
-- |
references: nonstock_master.product_class |
| $arg_array / unit_of_measure |
YES |
STRING |
16 |
references: item_master.unit_of_measure |
|
|
|
|
Valid values are stored as a config variable |
| $arg_array / unit_weight |
YES |
NUMERIC |
8.2 |
references: nonstock_master.unit_weight |
| $arg_array / retail_price |
YES |
NUMERIC |
15.5 |
references: nonstock_master.retail_price |
| $arg_array / list_price |
YES |
NUMERIC |
15.5 |
references: nonstock_master.list_price |
| $arg_array / last_cost |
YES |
NUMERIC |
15.5 |
references: nonstock_master.last_cost |
| $arg_array / item_matrix |
YES |
NUMERIC |
3.0 |
references: nonstock_master.item_matrix |
|
|
|
|
Valid values 0 - 999 |
| $arg_array / taxable_flag |
YES |
BOOLEAN |
-- |
references: nonstock_master.taxable_flag |
| $dbconn |
YES |
DBHANDLE |
-- |
Database Connection |
Outputs:
| Output Name |
Type |
Details |
| $record |
ASSOC |
Details follow: |
| $record / action |
STRING |
ADD: New record was added |
|
|
EDIT: Existing record was updated |
Error Codes:
| PGQUERY |
Failed SQL query |
| CHECKPOINT |
Error when calling the checkpoint function |
Called API Functions:
logAPI:vAPI_checkpoint_table_revision
Return to:
Item_API Reference
There are no comments on this page. [Add comment]