Venture ERP Documentation : ItemManualStockUpdate

Venture :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

10 vAPI_item_manual_stock_update


Update item stock levels

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 / warehouse_code YES STRING 8 references: warehouse_master.warehouse_code
$arg_array / item_code YES STRING 32 references: item_master.item_code
$arg_array / adjustment_type YES ENUM -- references: item_ledger.adjustment_type, details follow:




+: Add adjustment value to current stock level




-: Subtract adjustment value from current stock level




=: Set stock level to adjustment value
$arg_array / adjustment_value YES NUMERIC 15.3 references: item_ledger.adjustment_value
$arg_array / adjustment_details YES STRING 200 references: item_ledger.detail
$dbconn YES DBHANDLE -- Database Connection


Outputs:
NONE

Error Codes:
PGQUERY Failed SQL query
INVALID_ITEM_CODE Supplied Item Code is invalid
INVALID_ITEM_TYPE Unable To Update Stock On Assemblies


Called API Functions:
logAPI:vAPI_add_item_ledger_log

Return to:
Item_API Reference

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.3
Page was generated in 0.1332 seconds