Online Delivery charge calculation

Hello,

How can I make calculation for online delivery partners commission as a percentage in my accounts without affecting the bill that goes to the customer?

I have created separate entity screen with all the delivery partners and I want to apply their commission amount when I select adding the order through their entity.

I have tried multiple ways but couldn’t reach out to the best solution to this problem.

The nearest solution found is this one but again it doesn’t apply only on the delivery entities and it also apply the discount amount to the customer bill.

https://kb.sambapos.com/en/2-3-13-how-to-add-service-charge/

Thanks for the support.