Get payment entry list in particular one customer all payment entry total

I want to get particular one customer all payment entry paid amount total using list custom script which is apply on customer doctype so how can i get it?

In the Customer form view, this data is already displayed. So you’ll need to figure out how it gets there. Maybe in the onload event in the backend controller, or a call to a whitelisted method. Then you can reuse these methods in list view.

Ok you can see this image in two customer, I get payment entry and I print in console so it comes in 4000 but I want to print both separately Kajal’s payment entry is 3000 and Krishna’s is 1000 so how can I do it?