What are the treatment of trade discount and cash discount?