Thanks very much for your quick reply
That works thank you - but there are a couple of minor issues now:
1. The Discount row doesn't appear in the cart, even though the correct discount is applied to the total
2. Whatever happens I can't clear the discount.. even if I remove it from the database and add something else to the cart the discount is still applying...