If such consent be not given, filed and entered, as provided in NRS 39.300, at the time or before a judgment of sale is rendered, the court shall ascertain and determine what proportion of the proceeds of the sale, after deducting expenses, will be a just and reasonable sum to be allowed on account of such estate, and shall order the same to be paid to such party, or deposited in court for such party, as the case may require.
NRS 39.310