holmes/scripts/revert-posting-batch.sh
Andrew Mayorov 5d9418c702
Add a script for forced payment refund (#45)
* Add script for batch refund processing
2019-02-04 14:45:55 +03:00

8 lines
188 B
Bash
Executable File

#!/bin/bash
BATCH="${1}"
[ -z "${BATCH}" ] && exit 127
echo "${BATCH}" | \
jq '{id, postings:[.postings[] | {from_id:.to_id, to_id:.from_id, amount, currency_sym_code, description}]}'