If you don’t want transactions/payments to be shown on the invoice pdf document you can turn off by navigating to Setup->Settings->PDF and set to NO Show invoice payments (transactions) on PDF