Process to issue a meterial (Spare Parts) to an assets

I’m wondering how to issue a spare part to an asset (typically a machinery) for which cost to be taken into maintenance of selected asset.

for an example, a vendor with trading of tyre having an own transport vehicle to deliver the goods to their dealers and the store issued a tyre to reparing purpose of vehicle.

How to deal with above scenario ???