SAP Message AJ342 - Discount &1 has billing class &2 instead of &3

Diagnosis
The discount has a billing class that is different from the billingclass of the register.

System Response

Procedure
Choose a discount whose billing class corresponds to that of theregister.