Item Batch Numbering - Change Format Depending on Selection?

Hello,

Is it possible to assign a different Batch Numbering format to an item depending on another field? Maybe by warehouse/location assigned?

I.e. I have an item which could either be used for Production or Research. If I add the item as Production, it assigns the Batch Number PROD.######. If I assign it to Research it assigns a Batch Number of RES.######.

Is this possible?

Thanks,
Paul