quicktill.register makes us of two hard-coded values for RemoveCode.id — sold and pullthru. There's no guarantee that these will exist in the database.
At the least we should make these IDs configurable. Should we also make sure they exist during startup, eg. with a td.s.merge()? Or simply refuse to start if they don't exist.
quicktill.register
makes us of two hard-coded values forRemoveCode.id
—sold
andpullthru
. There's no guarantee that these will exist in the database.At the least we should make these IDs configurable. Should we also make sure they exist during startup, eg. with a
td.s.merge()
? Or simply refuse to start if they don't exist.