When a fine is assessed for violation of an ordinance, it shall be within the discretion of the judge assessing the fine to provide for the payment of the fine on an installment basis under such terms and conditions as he may deem appropriate.