MC Pro 13 a1502 early 2015

this device just stopped taking a charge(no water damage), i have tried different cables including apple new ones i have replaced the battery and the device works fine when connect to the fully charged new battery but just cant take a charge, and i have also replaced the mag safe charging port and still to no avail. any ideas on what can be causing this issue
 
WheN I plug in the MagSafe I get a solid green light immediately followed by a flashing amber light.. and the device recognizes the New battery with percentage shown
 
Top