Venture ERP Documentation : CalcComponentPrice

Venture :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Oldest known version of this page was edited on 2007-08-30 12:29:45 by LukeK []
Page view:

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
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 0.0649 seconds