Accounts Payable Rule
Set up the Accounts Payable rule with these options:
Select the Amt option as the method for determining tolerance, specifying 2.00 as the amount at which a warning is issued and 10.00 as the amount at which an error is issued.
Select the Tax on Gross Including Discount option.
Select the Discount on Gross Including Tax option.