$("input[data-type='currency']").on('keyup', ...)
меняете на $('#parts_tbody').on('keyup', 'input[data-type="currency"]', ...)
const parentPos = document.getElementById('parent-id').getBoundingClientRect(),
const childPos = document.getElementById('child-id').getBoundingClientRect(),
const relativePos = const {
top: childPos.top - parentPos.top,
right: childPos.right - parentPos.right,
bottom: childPos.bottom - parentPos.bottom,
left: childPos.left - parentPos.left,
};