3 INSERT INTO config.upgrade_log (version) VALUES ('0108');
5 INSERT INTO action_trigger.hook (key, core_type, description, passive)
7 'format.selfcheck.items_out',
9 'Formats items out for self-checkout receipt',
13 INSERT INTO action_trigger.event_definition (id, active, owner, name, hook, validator, reactor, group_field, granularity, template )
18 'Self-Checkout Items Out Receipt',
19 'format.selfcheck.items_out',
26 [%- SET user = target.0.usr -%]
28 <style> li { padding: 8px; margin 5px; }</style>
29 <div>[% date.format %]</div>
32 [% user.family_name %], [% user.first_given_name %]
34 [% FOR circ IN target %]
36 <div>[% helpers.get_copy_bib_basics(circ.target_copy.id).title %]</div>
37 <div>Barcode: [% circ.target_copy.barcode %]</div>
38 <div>Due Date: [% date.format(helpers.format_date(circ.due_date), '%Y-%m-%d') %]</div>
47 INSERT INTO action_trigger.environment ( event_def, path) VALUES
49 ( 11, 'circ_lib.billing_address'),
50 ( 11, 'circ_lib.hours_of_operation'),