Final invoice total is not calculating correctly