@jake I tried this before and commit quantity can’t be modified via script (at least that is what I got). So one way of doing that is you modify quantity and then add another line with same item and remaining quantity and set “commitinventory” option to 3 (Do not commit) , example : setCurrentLineItemValue(‘item’, ‘commitinventory’, 1);