To add a discount and(or) an extra charge to a payable, click on the payable code:
It will open the payable details page.
Press the "Discount & Extra charge" button:
Enter the required value and press "Update" to apply changes: