Allow negative discount
On purchase document lines (orders, invoices, credit memos, quotes, etc.) Business Central recalculates the Line Discount % when you enter a Line Discount Amount directly. Normally, if the amount results in a percentage that is negative or greater than 100, an error is raised.
With this module the check is removed: you can enter a negative Line Discount Amount (which works as a price surcharge), and the Line Discount % is calculated accordingly, even as a negative value.
There are no new pages or fields: the behavior applies to the lines of all purchase documents.
| Field | Description |
|---|---|
| Line Discount Amount | Discount amount on the line. Can be negative to apply a surcharge. |
| Line Discount % | Calculated automatically as Line Discount Amount / (Quantity × Direct Unit Cost) × 100, rounded to 5 decimals. Can be negative. |
- Open a purchase document and go to a line with Quantity and Direct Unit Cost filled in.
- Enter the desired value in Line Discount Amount, including a negative one.
- The Line Discount % is updated automatically with no error message.
- If the line value (Quantity × Direct Unit Cost) is zero, the Line Discount % is set to 0.