it updates the advances of the order when it is changes the selected tab. this permit to validate correctly the error that occurs when it is introduced advances with same type.