Serial with different batch

I was confuse when recognize that my system can assign the same serial number for different batch.
I created batch and serial number and can not tracking when it changed to another batch.
The system is still original batch. I only know the new batch when make sale invoice by POS.
Anybody who can explain to me how we can do it.