fixed pims-2948: record inventory | cannot get property 'oldQuantity' on null object