I had the same error just now, found this while searching for the error
message.I had local pickup on the invoice, which is a 0.00 charge. I
deleted this line and was able to run the discount. Granted it's a year
plus later, but hopefully it can help...