RefreshQuantity

Refresh Quantity from sub components if quantity of main components changed

 

Example:

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

 

if you change quantity from Pos 10, then the system don't change automatically the quantity from Pos 20

With this function you can calculate all needed quantities from sub assemblies

 

WorkorderPos/RefreshQuantity(DocEntry,LineNumber) 

 

Return

 

{"value": "BarCodeString"}

 

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

If refresh is possible, the system return

{"value": 1}

 

In all other cases the system return

{"value": -1}