Hi @ted_p My understanding suggests that you want to caculate QTY - Fulfilled QTY. So to find out the remaining QTY to be picked on Picking Ticket. I would suggest the following:
<td colspan="2">${item.quantity - item.quantityfulfilled}</td>
Upon saving the template you will receive an error, but ignore the error and Save.