I have a vendor payment that has bills and credits applied that I can see from UI. I need to be able access the credits applied thru script. I am not able to link the credits, bills applied to one particular payment using search or script. Any help is appreciated.