Update Lenses by OPC (lenses/update/opc)

Updates an inventory item by OPC, accepting “bin”, “max”, “min”, “cost” as parameters.

Example request:

A POST request to: “http://localhost:4567/api/lenses/update/opc”

A request body of

{ "opc": "12345678", "min": 100, "max": 100, "cost": 50, "bin": 100 }

returns

{ "stock-num": "00000000", "stock-desc": "AAA BBBBO00 0400 0300 70", "bin": "100", "min": "000100", "max": "000100", "rt-opc": "0000000000", "lt-opc": "0000000001", "total-qty": 100, "right-qty": 100, "left-qty": 0, "total-alloc": 0, "right-alloc": 0, "left-alloc": 0, "total-in-proc": 0, "right-in-proc": 0, "left-in-proc": 0, "standard-cost": 50.0, "average-cost": 0.0 }