12 vAPI_add_edit_vendor_item_mulitplier
Add/edit discount multiplier and cost-to-list multiplier record
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 / multiplier_group |
YES |
INT |
-- |
references: vendor_item_multipliers.multiplier_group |
| $arg_array / description |
YES |
STRING |
64 |
references: vendor_item_multipliers.description |
| $arg_array / discount_multiplier |
YES |
NUMERIC |
(8,5) |
references: vendor_item_multipliers.discount_multiplier |
| $arg_array / cost_list_multiplier |
YES |
NUMERIC |
(8,5) |
references: vendor_item_multipliers.cost_list_multiplier |
| $dbconn |
YES |
DBHANDLE |
-- |
Database Connection |
Outputs:
| Output Name |
Type |
Details |
| $record |
ASSOC |
Row details follow: |
| $record / action |
STRING |
Details below: |
|
|
ADD: New record was added to system |
|
|
EDIT: Existing record was updated |
Error Codes:
| PGQUERY |
Failed SQL query |
| NO_PERMISSION |
User lacks sufficient permission to perform this function |
| INVALID_VENDOR |
Supplied vendor_code doesn't match vendor_master record |
Return to:
Pricing_API Reference
There are no comments on this page. [Add comment]