rattail-manual/docs/data/batch/handlers.rst
2021-10-12 20:39:41 -04:00

20 lines
815 B
ReStructuredText

==============
Batch Handlers
==============
A "batch handler" contains logic to handle the entire life cycle of a batch.
Meaning, the batch handler is what will actually create the batch, and update
it per user edits, refresh it etc. and ultimately execute it.
The UI exposes tools for interacting with the batch but ultimately the handler
is what "acts on" the batch based on user input.
See also :doc:`/base/handlers/index` for general info on handlers.
Each type of batch will have precisely one "handler" associated with it. For
instance, there is a handler for inventory batches, and another for label
batches, etc. The app can override the handler for each batch type, should
they need to customize behavior. And of course if the app adds a new batch
type then it must also provide a handler for it.