Section 17(2)(b) in The Maternity Benefit Act, 1961
(b)she has been discharged or dismissed during or on account of her absence from work in accordance with the provisions of this Act, may pass such orders as are just and proper according to the circumstances of the case.