5 INSERT INTO actor.org_unit_setting (org_unit, name, value) VALUES (1, 'circ.permit_renew_when_exceeds_fines', true);
7 INSERT INTO actor.usr_standing_penalty(org_unit, usr, standing_penalty, staff)
8 SELECT 1, 6, id, 1 FROM config.standing_penalty WHERE name='PATRON_EXCEEDS_FINES';
9 UPDATE asset.copy SET status=1 WHERE id=1; -- Checked out, so that we can renew it
14 'user can renew item on max_fines when org setting is true'
16 FROM action.item_user_circ_test( '8', -- org_unit
20 AS permit_test LIMIT 1;
22 UPDATE actor.org_unit_setting SET value = false WHERE name = 'circ.permit_renew_when_exceeds_fines';
27 'user cannot renew item on max_fines when org setting is false'
29 FROM action.item_user_circ_test( '8', -- org_unit
33 AS permit_test LIMIT 1;
35 SELECT * FROM finish();