Ability to create 2 different codes in 1 module

Ability to create 2 different codes in 1 module

I want to create two different automatic codes. When a personnel from the company creates a new purchasing offer I want the code to be PRCxxxxx and to be able to see this offer on the kanban board. Then after this offer is approved I want the code to turn into POxxxx on the kanban board. How can I do this?