When Are ERP Costs Deductible?