A payroll bill can be settled by separate bank deductions for employees, reimbursements and taxes. In the disclosed bill configuration, use each supplied statement amount and remittance identity to apply the correct partial payment to the same payroll bill. Check the remaining amount after each allocation.
If a payment is already recorded, match that existing payment. Don't create another payroll expense or alter its original allocation just because a bank line has arrived. Equal amounts can belong to unrelated deductions, so retain the bank reference and payroll-run identity. These tasks use approved fictional totals and original local statement evidence; they don't calculate deductions or move money. A bill that looks paid isn't enough to establish that all requested bank evidence has been matched. Inspect both the document settlement and the individual statement links.