fixed get_payment_by_date