Can any app limit purchase units per customer for a B2B site?

Thank you for your help.

Is there any application that can tie purchase units by customer?

Customer A can purchase 10 units each.

Customer B can purchase 20 units each.

We would like to create a B2B website with the above settings.

Thank you in advance.