Early Pay Discount needs to omit freight charge

Is there a way to omit freight charges from being included in the early payment discount calculation?