In that case, it's probably an old code, read the codes again, check there's nothing new and then erase them. Drive the car as normal and see if the codes and charge warning light come back.
If the code does come back with the charge warning light, you'll have to take it to where the alternator was fitted, it should have come with some sort of warranty