TIP: If you haven't read Organisation Hierarchy - an Introduction do so before reading this document
The amount of money a care worker gets paid for a booking is calculated by adding together lines that are matched by the booking in the relevant tariff structure. But the means of selecting the tariff structure for a carer is sometimes much more complicated than for a customer (which is always the organisation the client belongs to or the first parent organisation that has a tariff structure defined).
To decide which tariff structure a care worker pay is based on, the program does the following:
- Look at the effective organisation for the care worker. See Organisation Hierarchy, "Effective Organisations" and System Setup for an explanation of effective organisation. If it has a tariff structure then use this.
- Look at the effective organisation for the event (which is the organisation of the first client on the event). Check that the carer organisation is an ancestor.
If so: walk down the organisation tree from the carer organisation to the event organisation until a tariff structure is found, and use that.
If not: there is no tariff defined, and there will be zero pay