I would not recommend passing a journal entry manually for depreciating the stock item every time you receive it back from the customer.
As I mentioned above, you’ll have to customise ERPNext for these purposes.
Other users have used warehouses for the purpose of keeping track of rental equipment.
For greater control, however, I recommend creating a custom app using the Frappé Framework. If you know Python and JS you’ll quickly learn this stuff.