Hide or delete disabled customers during sync from ERPNext

I would like Customer records to be synced between ERPNext and Helpdesk, but only those that are “Disabled==no” in ERPNext.

I get a huge list of Customers in my Helpdesk app and I only want to see the ones that are not disabled in ERPNext.

How can I make this happen on a frappe cloud hosted instance?

It looks like the current integration doesn’t provide a filter for disabled customers.

Rather than deleting them, it would be better to synchronize the disabled status with HD Customer and provide an option to hide inactive customers. This would preserve existing ticket history and handle customers who are reactivated later.

This would be a useful enhancement to the native integration, especially for Frappe Cloud users.