Calculates the SSCC check digit of the number.
Calculates the SSCC check digit of the number. If it fails the calculation, returns None
Tries to generate a number for a container, if the com.atomizesoftware.spin.models.NumberStandard of its com.atomizesoftware.spin.models.ContainerType allows automatic generation.
Gets the next counter value for the com.atomizesoftware.spin.models.Location, considering the case when the counter belongs to a parent location.
Gets the next counter value for the com.atomizesoftware.spin.models.Location, considering the case when the counter belongs to a parent location.
the location from which we get the counter.
the string to prepend to the counter value
the character used to pad the number between the counter value and the prefix, until the desired numberLength is achieved
the length of the final string
Gets the next SSCC number for a location, considering the com.atomizesoftware.spin.models.Location prefix and counter value
Returns the number for the container, taking into account the com.atomizesoftware.spin.models.NumberStandard of its com.atomizesoftware.spin.models.ContainerType.
Returns the number for the container, taking into account the com.atomizesoftware.spin.models.NumberStandard of its com.atomizesoftware.spin.models.ContainerType. If the com.atomizesoftware.spin.models.Container number is empty and it's com.atomizesoftware.spin.models.NumberStandard allows automatic generation, it tries to generate a number. If the Container number isn't empty, it tries to validate it against the NumberStandard.
Validates the container, considering its com.atomizesoftware.spin.models.NumberStandard if set for this container com.atomizesoftware.spin.models.ContainerType
Returns the number standard of the container, if such standard is possible to identify.
Returns the number standard of the container, if such standard is possible to identify. Returns None if no com.atomizesoftware.spin.models.NumberStandard is found.
Validates a SSCC number
Validates the SSCC check digit of a SSCC number