_save

Sets the variables in a Requisition Order Entry

Parameters

ro_id

The ID of the Requisition Order with this Entry.

id

The ID of the Entry.

stock_type

The type of Entry: 0 => Empty 1 => Stock 2 => Free Text

supplier_id

The ID of a Supplier which can be selected for the Entry.

stock_id

The ID of the Stock selected in the Entry.

stock_text

Used as a string variable for the description of the Entry if "stock_type" is 2, or otherwise as the name of the Stock selected for the Entry.

qty

The quantity of Stock units in the Entry.

cost

The cost of one Stock unit in the Entry.

nominal

The Nominal Code for the Entry.

taxtype

The Tax Rate selected for the Entry.

totalnet

The Net Total for the Entry.

totaltax

The Total Tax for the Entry.

Example

Result

On Success

On Failure

If the "ro_id" parameter is not set:

If the "id" parameter is not set:

If the "stock_type" parameter is not set:

If the "supplier_id" parameter is not set:

If the "stock_id" parameter is not set:

If the "stock_text" parameter has a trimmed string value with a length higher than 255:

If the "qty" parameter is not set:

If the "cost" parameter is not set:

If the "nominal" parameter is not set:

If the "taxtype" parameter is not set:

If the "totalnet" parameter is not set:

If the "totaltax" parameter is not set:

If the "ro_id" parameter is set but does not have any integers:

If the "id" parameter is set but does not have any integers:

Last updated