What happens if a Purchase Refund is created for an invoice settled through an employee custody?
In this case, the Purchase Refund is processed normally through the Purchases module, without making any changes to the custody settlement row itself. This means that the settlement row remains unchanged and is neither reversed nor recalculated.
As for the refunded amount, it is returned to the original treasury linked to the custody, rather than directly to the custody or the employee.