BEGIN; INSERT INTO config.upgrade_log (version) VALUES ('0108'); INSERT INTO action_trigger.hook (key, core_type, description, passive) VALUES ( 'format.selfcheck.items_out', 'circ', 'Formats items out for self-checkout receipt', TRUE ); INSERT INTO action_trigger.event_definition (id, active, owner, name, hook, validator, reactor, group_field, granularity, template ) VALUES ( 11, TRUE, 1, 'Self-Checkout Items Out Receipt', 'format.selfcheck.items_out', 'NOOP_True', 'ProcessTemplate', 'usr', 'print-on-demand', $$ [%- USE date -%] [%- SET user = target.0.usr -%]