For any order to pay a fine, make payments to a domestic violence shelter-based program, or pay restitution as a condition of probation under this subdivision, the court shall make a determination of the defendant's ability to pay. In no event shall any order to make payments to a domestic violence shelter-based program be made if it would impair the ability of the defendant to pay direct restitution to the victim or court-ordered child support. If the injury to a married person is caused in whole or in part by the criminal acts of their spouse in violation of this section, the community property shall not be used to discharge the liability of the offending spouse for restitution to the injured spouse, required by Section 1203.04, as operative on or before August 2, 1995, or Section 1202.4, or to a shelter for costs with regard to the injured spouse and dependents, required by this section, until all separate property of the offending spouse is exhausted.
Ca. Pen. Code § 243