11 vAPI_calc_component_price
Calculate a prorated price for a component on a sales order
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 / sales_order_header_id |
YES |
INT |
-- |
references: sales_order_header.sales_order_header_id |
| $arg_array / assy_line_number |
YES |
INT |
-- |
references: sales_order_line_items.line_number |
| $arg_array / comp_line_number |
YES |
INT |
-- |
references: sales_order_line_items.line_number |
| $dbconn |
YES |
DBHANDLE |
-- |
Database Connection |
Outputs:
| Output Name |
Type |
Details |
| $record |
ASSOC |
Row details follow: |
| $record / comp_calc_price |
MONETARY |
Total Calculated/Prorated Price for Component |
Error Codes:
| PGQUERY |
Failed SQL query |
| INVALID_ITEM_TYPE |
Supplied Item Code is not an Assembly |
| ZERO_COST |
The Assembly Or A Component Had A Cost Of 0 |
Return to:
Pricing_API Reference
There are no comments on this page. [Add comment]