My laptop battery is not detected after not being used for 2 weeks when only purchased 3 months ago.

When I took it to the Sony service center and they say that there is no warranty for battery. And the cost for the battery is about 335 USD, 25% of unit price.