BEGIN; INSERT INTO config.upgrade_log (version) VALUES ('0238'); -- senator INSERT INTO action_trigger.hook (key, core_type, description, passive) VALUES ( 'format.acqcle.html', 'acqcle', 'Formats claim events into a voucher', TRUE ); INSERT INTO action_trigger.event_definition ( id, active, owner, name, hook, group_field, validator, reactor, granularity, template ) VALUES ( 21, TRUE, 1, 'Claim Voucher', 'format.acqcle.html', 'claim', 'NOOP_True', 'ProcessTemplate', 'print-on-demand', $$ [%- USE date -%] [%- SET claim = target.0.claim -%]

Claim: [% claim.id %] ([% claim.type.code %])

Against: [%- helpers.get_li_attr("title", "", claim.lineitem_detail.lineitem.attributes) -%]

$$ ); INSERT INTO action_trigger.environment (event_def, path) VALUES (21, 'claim'), (21, 'claim.type'), (21, 'claim.lineitem_detail'), (21, 'claim.lineitem_detail.fund'), (21, 'claim.lineitem_detail.lineitem.attributes'), (21, 'claim.lineitem_detail.lineitem.purchase_order'), (21, 'creator'), (21, 'type') ; COMMIT;