BANGKOK — An Indonesian bookkeeper who rose to national prominence after she was sentenced to jail for recording her boss to prove he was sexually harassing her is expected to receive amnesty from the country’s president soon.

A grant of amnesty by President Joko Widodo would reverse two Supreme Court rulings and spare the bookkeeper, Nuril Maknun, a six-month jail term and a $35,000 fine, in a case that has highlighted the frequent mistreatment of women in Indonesia.

The president signaled his intention to grant amnesty last week when he asked for Parliament’s approval, which it granted Thursday. Once the president receives a formal letter of approval from Parliament, he will issue a decree granting Ms. Nuril amnesty, an aide to the president said.

“Baiq Nuril is the real victim, not the perpetrator,” said Parliament member Erma Suryani Ranik, using an honorific for Ms. Nuril as she read a statement from Parliament supporting the grant of amnesty.