Dear
@Navid6284,
Normally, the court closes the criminal case if the duty of community service is fulfilled. Therefore I suspect that the 480 € are the cost of the criminal proceedings and not the fine.
If my assumption is correct, the criminal proceeding against your friend have ended without conviction and consequently has no influence on his residence permit.
If not, I need your information on how many days your friend was sentenced for theft.
Best regards
WKZB1