Adds a srfsh script which can be run via CRONTAB for aging billings and
payments. Includes sample (commented) CRONTAB entry and note regarding
data discarded as a result of aging.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
# TODO: add other entries
+# Run the money aging script.
+# The Aging interval is defined within the script. Change to suit.
+# NOTE: At time of writing, the money aging process discards certain
+# billing and payment data. Use with caution.
+# https://bugs.launchpad.net/evergreen/+bug/1858448
+#5 2 * * * . ~/.bashrc && $EG_BIN_DIR/age-money.srfsh
+
--- /dev/null
+#!/openils/bin/srfsh
+request open-ils.cstore open-ils.cstore.json_query {"from": ["money.age_billings_and_payments", "1 year"]}