Stock item for specific customer group

Is there a way to restrict stock items in sales transactions based of specific customer group?

I have an Item and it should only be sold to specific customer group.

Hi @orey-aajaamu

Are you asking is there is a native way of doing it without a client script?

Hi @asieftejani

Yes

The Party Specific Item DocType was made exactly for this scenario. Unfortunately the documentation link for it seems to be dead (we are working on it) and it doesn’t support Customer or Supplier Groups yet. You can momentarily use it if you can afford just restricting to specific Supplier or Customer.

It should be pretty simple to understand even without documentation. Do check it out. Also, could you please create a GitHub feature request for support of Party Groups instead of just one Party?

Hi @mihir-kandoi

Thanks for the update. It’s not feasible for me to use party specific item. I have created GitHub feature request: Item restrictions based on party group · Issue #54987 · frappe/erpnext · GitHub

Thank you.