since your friend inspite of having funds refused to pay the fine let him spend some time in jail . Section 64 of the Indian Penal Code provides that it shall be competent to the Court which sentences an offender to direct by the sentence that, in default of payment of the fine, the offender shall suffer imprisonment