For payment transactions defined with the entry of Discount type (Cash receipt, discount and so on), the receipt notes are constituted via the grouping of payments that have the same discount type.
In the other cases, indicate the discount type to be assigned to the receipt notes generated.