Auto reconcile payment lines and lines to pay #6411

should be amount_to_pay

the difference is payment terms could delay the receivable which is not considered in `amount_to_pay_today`. So considering the amount_to_pay_today alone is insufficient.