What are the two types of discounts,

When a business extends credit to its customers, we call this Accounts Receivable. Often a business will grant its customers a discount.

a)What are the two types of discounts, and

b) how does the journal entry to record the sale change when there is a discount granted?