edit payrecord

fixed returns on min and max.
to do : fix overload of <<
overload >>