2020-06-15 11:54:42 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ueo pipefail
|
|
|
|
|
2022-10-04 15:18:59 +01:00
|
|
|
PERIOD=$(date -d "$(date +%Y-%m)-15 last month" '+%Y-%m')
|
2020-06-15 11:54:42 +01:00
|
|
|
satellite --config-dir $SATELLITE_0_DIR billing prepare-invoice-records $PERIOD
|
|
|
|
satellite --config-dir $SATELLITE_0_DIR billing create-invoice-items $PERIOD
|
|
|
|
satellite --config-dir $SATELLITE_0_DIR billing create-invoice-coupons $PERIOD
|
|
|
|
satellite --config-dir $SATELLITE_0_DIR billing create-invoices $PERIOD
|
|
|
|
satellite --config-dir $SATELLITE_0_DIR billing finalize-invoices $PERIOD
|