3 INSERT INTO config.upgrade_log (version) VALUES ('0112');
5 INSERT INTO action_trigger.hook (key, core_type, description, passive)
7 'format.selfcheck.fines',
9 'Formats fines for self-checkout receipt',
13 INSERT INTO action_trigger.event_definition (id, active, owner, name, hook, validator, reactor, granularity, template )
18 'Self-Checkout Fines Receipt',
19 'format.selfcheck.fines',
25 [%- SET user = target -%]
27 <style> li { padding: 8px; margin 5px; }</style>
28 <div>[% date.format %]</div>
31 [% user.family_name %], [% user.first_given_name %]
33 [% FOR xact IN user.open_billable_transactions_summary %]
36 [% IF xact.xact_type == 'circulation' %]
37 [%- helpers.get_copy_bib_basics(xact.circulation.target_copy).title -%]
39 [%- xact.last_billing_type -%]
42 <div>Total Billed: [% xact.total_owed %]</div>
43 <div>Total Paid: [% xact.total_paid %]</div>
44 <div>Balance Owed : [% xact.balance_owed %]</div>
53 INSERT INTO action_trigger.environment ( event_def, path) VALUES
54 ( 13, 'open_billable_transactions_summary.circulation' );