I had an issue with an aftermarket battery not being recognised by the dell bios and not charging. After trying the fix of removing the battery, booting into windows etc like most threads suggested, it still did not work.
What I did (and so far it has fixed the problem, and the battery still...