Bond Discount - Losses

if a company issues a bond at a discount..does it therefore have to record a loss and is that loss allowable for corporation tax