A device for handling notes of value, with an input compartment for inputting notes of value (13, 40), with a value note identification unit for identifying the input notes of value, with an intermediate storage unit for intermediately storing the identified notes of value (13, 40), with at least a first cash box (12a to 12d) for storing notes of value, with at least a second cash box for storing notes of value, with a transport unit (19, 24) for transporting the notes of value, and with a control unit that is configured to assign one cash box (12a to 12e) as a target cash box (12a to 12e) to each of the identified notes of value (13, 40), to determine whether a filling level of the second cash box has reached or exceeded a predetermined value, and to control the transport unit (19, 24) such that intermediately stored notes of value (13, 40) that are to be stored in the first cash box (12a to 12d) are removed from the intermediate storage unit, are fed to the first cash box (12a to 12d) and stored therein, wherein the control unit is configured to determine a remaining capacity of the second cash box in that the control unit deducts the number of the notes of value that have been stored in the second cash box, after the filling level of the second cash box has reached or exceeded the predetermined value, from an initial remaining capacity stored in a preset manner, and when the number of intermediately stored notes of value that are to be stored in the second cash box does not exceed the remaining capacity, to control the transport unit (19, 24) such that the transport unit (19, 24) removes these notes of value from the intermediate storage unit and feeds them to the second cash box and stores them therein, characterized in that the control unit is configured to control the transport unit (19, 24), when the number of notes of value that are stored in the intermediate storage and that are to be stored in the second cash box has reached the remaining capacity, such that further notes of value which have already been taken from the input compartment and have not yet been fed to the intermediate storage unit are transported back into the input compartment, and the initial remaining capacity stored in a preset manner is greater than or equal to the number of notes of value which are intermediately storable in the intermediate storage unit at most. with an input compartment for inputting notes of value (13, 40), with a value note identification unit for identifying the input notes of value, with an intermediate storage unit for intermediately storing the identified notes of value (13, 40), with at least a first cash box (12a to 12d) for storing notes of value, with at least a second cash box for storing notes of value, with a transport unit (19, 24) for transporting the notes of value, and with a control unit that is configured to assign one cash box (12a to 12e) as a target cash box (12a to 12e) to each of the identified notes of value (13, 40), to determine whether a filling level of the second cash box has reached or exceeded a predetermined value, and to control the transport unit (19, 24) such that intermediately stored notes of value (13, 40) that are to be stored in the first cash box (12a to 12d) are removed from the intermediate storage unit, are fed to the first cash box (12a to 12d) and stored therein, wherein the control unit is configured to determine a remaining capacity of the second cash box in that the control unit deducts the number of the notes of value that have been stored in the second cash box, after the filling level of the second cash box has reached or exceeded the predetermined value, from an initial remaining capacity stored in a preset manner, and when the number of intermediately stored notes of value that are to be stored in the second cash box does not exceed the remaining capacity, to control the transport unit (19, 24) such that the transport unit (19, 24) removes these notes of value from the intermediate storage unit and feeds them to the second cash box and stores them therein, characterized in that the control unit is configured to control the transport unit (19, 24), when the number of notes of value that are stored in the intermediate storage and that are to be stored in the second cash box has reached the remaining capacity, such that further notes of value which have already been taken from the input compartment and have not yet been fed to the intermediate storage unit are transported back into the input compartment, and the initial remaining capacity stored in a preset manner is greater than or equal to the number of notes of value which are intermediately storable in the intermediate storage unit at most.