labor hours or material consumption can be allocated.
for example, allocating labor cost by material consumption
labor cost allocation rate of a product = material consumption of the product/total material consumption in the current period
labor cost to be shared by a product = labor cost allocation rate of the product × total labor cost in the current period
borrowing: inventory goods
lending: employee salaries payable.