Vendor payment journal in d365. Go lines and then click on Settlement button.