Percentage salary

hi, guys.
I have a task in one of the cafes to transfer some workers to a percentage of sales.
in samba working time clock (for kendash).

I need that, depending on the type of product to the order, a cook or several cooks who cook this food.
you need something like that:

-order add to ticket-
if product type = salate
then add to order tag (or state) entity that matches Entity State=PunchIn, Entity custom field “Position” = cook

then through the report it will be possible to calculate what dishes were made by this particular chef.

The problem is that I do not know how to get an expression that would show me the right one Entity name.

or is there a more elegant solution for this task ? would be glad to see

p.s. sorry for my english - Google translate///