Set up three cash discount codes as follows: Code 5D10% - A cash discount of 10% when the amount is paid within 5 days. Code 10D5% - A cash discount of 5% when the amount is paid within 10 days. Code 14D2% - A cash discount of 2% when the amount is paid within 14 days. In the Next discount code field: For the 5D10% code, select 10D5%. [Assign 14D5% as the next discount code for 7D10%. - C] For the 10D5% code, select 14D2%. [Assign 21D2% as the next discount code for 14D5%. - E] For the 14D2% code, leave the Next discount code field blank. [Assign 21D2% as cash discount. - D] The three cash discounts succeed each other as the payment date exceeds the previous cash discount date on the invoice. Only one cash discount is granted when the invoice is paid, based on which cash discount date is meet in the sequence of cash discounts. Reference: https://learn.microsoft.com/en-us/dynamics365/finance/cash-bank-management/cash-discounts