When the losses of a credit union resulting from a depreciation in value of its loans or investments, or otherwise, exceed its undivided earnings and reserve fund so that the estimated value of its assets is less than the total amount due the shareholders, the credit union may by a majority vote of the entire membership order a reduction in the shares of each of its shareholders to divide the loss proportionately among the members. If thereafter the credit union shall realize from its assets a greater amount than was fixed by the order of reduction, the excess shall be divided among the shareholders whose assets were reduced, but only to the extent of the reduction.