Excluding takeaway charge for calculating discount amount

I apply take away charges (followed the tutorial for environmental surcharge) . issue I am facing is to exclude the environmental charge from price when I apply a discount. for example, if food cost Rs. 80, take away charges Rs 20, and discount to be apllied is 10%, the bill amount should be Rs 92, not 90.
Thanks
Anil

Post screenshots of your setup.

The issue you are facing is that you are applying a Ticket-level Discount (Calculation) which acts on the Ticket Total.

So you need to find a way to remove the Order Tags for Takeaway that are applied at the Order-level, then apply the Ticket-level Discount Calculation.

This will require some Automation.

Thanks for your attention and reply. Please clarify what screen shots you need to help my issue.
regards
Anil








I have added screen shots. Please advise how to proceed. Let me know if I missed including some settings.
regards
Anil