Nobody is asking about resetting the battery. The question, which has now been asked twice without an answer, is whether the battery was coded to the car. Unless that is done various electronic systems in the car will not work.
Having said that, battery draining in 10 hours suggests there is some electrical equipment running (dashcam, radio, lights, satnav for examples) while the ignition is off, or an electrical fault. Be aware that if the new battery is completely flat it may have suffered damage and need replacement again, so it's essential to resolve the electrical fault before buying another.
It would also be worth getting the alternator tested as they normally put out approximately 14.5 volts.