add condition on "Invoice is newer than last payment type change", RT#31185