(for KL Siew's Use Only)
When you give notice for termination of service, you are supposed to work during the notice period. If not, you are required to pay two months salary as indemnity. As such, they may not pay you your maternity allowance. Anyway, ask your company about it.