A local weighted Axler–Zheng theorem in ℂn