It is possible to calculate your maternity allowance based on salary over the time you had a full salary.
In other cases, too, where a woman's salary is reduced due to absence from work for a reason beyond her control, there is a possibility to complete the salary.