345.1. Where a sentence in the form of a fine has been imposed on the defendant and the defendant makes payment of a sum due, carries out compensatory work or serves a term of imprisonment in default of payment, the sum, work or term of imprisonment is applied first to payment of the costs related to the fine.
When an agreement is made with the defendant, the collector shall, in respect of the judgments to be executed by the collector, see to it that the sums remitted and the work the defendant undertakes to perform serve to satisfy the judgment most likely to be the subject of an application for the issue of a warrant of committal against the defendant.