Update an existing payment record and keep it linked to the correct invoice, customer, claim, or property when those columns exist.