The sequence number starts with 0001 and is increased by 1 for each "movement" product related to another movement of the statement.
The last 4 digits correspond to the detail number.
The detail number starts with 0000 and is increased by 1 for each "movement" product with the same permanent sequence number.