Checks the correct setup of discount fields on the invoice header.
| Item | Description |
|---|---|
| Technical Name | validate_cash_discounts |
| Availability | Generic |
When does this validation fail?
- Discount amount is negative or greater than invoice amount incl. VAT
- The discount amount cannot be equal to 0 if the discount code has a discount percentage greater than 0.
- A discount code must be entered if a discount date is specified or if the discount amount is not equal to 0.
- A discount date must be entered if a discount code is specified or if the discount amount is not equal to 0.
More information
An overview of all business validations is available in the article Business validations - overview.