Whenever prisoners are paid for their labor under this article and a prisoner wilfully violates the terms of his employment or the rules of the camp or the Department of Corrections the Director of Corrections may in his discretion determine what portion of all moneys earned by the prisoner shall be forfeited by the prisoner and such forfeiture shall be deposited in the State Treasury in the fund known as the Inmate Welfare Fund of the Department of Corrections.
Ca. Pen. Code § 2785