RefreshQuantity

Refreshes Quantity from sub-components if the quantity of main components has changed.

 

Example:

Pos 10: 5 Pcs
Pos 20: Subassembly from Pos 10: 5 Pcs

 

if you change quantity from Pos 10, then the system does not change the quantity from Pos 20 automatically.

With this function you can calculate all necessary quantities of sub-assemblies.

 

WorkorderPos/RefreshQuantity(DocEntry,LineNumber) 

 

Return

 

{"value": "BarCodeString"}

 

Note: Only working, if  Work order exists and not closed

If refresh is possible, the system returns

{"value": 1}

 

In all other cases the system returns

{"value": -1}