On divorce, nullity or judicial separation, the court can make an order that one party pay the other a lump sum or that one party pay the other a lump sum for the benefit of a child or children of the family.