-BEGIN;
-
-- DATA FOR LIVE TESTING LP#1198465:
-- Support for Conditional Negative Balances
--
-- NOTE: Org unit settings will be handled in the perl code
--- clear bills and payments for our test circs
-DELETE FROM money.billing WHERE xact <= 16;
-DELETE FROM money.payment WHERE xact <= 16;
-
--- clear any non-stock settings
--- XXX This will need adjusting if new stock settings are added, so
--- TODO: Pad out org_unit_settings with a SETVAL like we do for other
--- settings
-DELETE FROM actor.org_unit_setting WHERE id >= 14;
-
--- clear out the test workstation (just in case)
-DELETE FROM actor.workstation WHERE name = 'BR1-test-09-lp1198465_neg_balances.t';
-
-- Setup some LOST circs, and change copy status to LOST
UPDATE action.circulation SET
xact_start = '2014-05-14 08:39:13.070326-04',
WHERE id = 10;
UPDATE money.materialized_billable_xact_summary SET balance_owed = 0.70
WHERE id = 11;
-COMMIT;
--- /dev/null
+BEGIN;
+
+-- RESET DATA FOR LIVE TESTING LP#1198465:
+-- Support for Conditional Negative Balances
+--
+-- After running this, reload neg_bal_custom_transactions.sql.
+-- Once both files are run, the tests should succeed again.
+
+-- clear bills and payments for our test circs
+DELETE FROM money.billing WHERE xact <= 16;
+DELETE FROM money.payment WHERE xact <= 16;
+
+-- clear any non-stock settings
+-- XXX This will need adjusting if new stock settings are added, so
+-- TODO: Pad out org_unit_settings with a SETVAL like we do for other
+-- settings
+DELETE FROM actor.org_unit_setting WHERE id >= 14;
+
+-- clear out the test workstation (just in case)
+DELETE FROM actor.workstation WHERE name = 'BR1-test-09-lp1198465_neg_balances.t';
+
+COMMIT;