Discount for balance due amount can be added for customer/supplier.
Click the add discount button on the customer/supplier ledger screen

On clicking the button it shows a popup, enter the details and click save.
The discounted amount will be accounted for in their ledger.

NOTE: This discount can only be added by the admin and not by other users.