Which table for applied amount for an invoice

SOLVED

Hello, We are trying to display the balance of a given invoice. For example, an invoice total is $100. Applied (paid) amount is $40 and balance is $60. In which table we can find the applied amount $40? We were looking at payments table in AR but obviously that's not the right table. Can someone point us to the right direction?  As always, thank you so much for your help!