It failed to achieve the milestone of performing the first flight of the A400M by the end of March , which meant its customer Occar , the European military equipment procurement agency , had the right to terminate the entire A400M contract from the beginning of April .