# Entry points of accounting statement workflows.

## NOTE:
These scripts are not meant to be run directly. Entry points are setup in setup.py. The following is a description of how to run these scripts:

### Monthly statement generation (monthly_statement_generation.py):
Generate AVRO files for all labels / subaccounts monthly.
Each run will generate AVRO files for the specified month or the quarter of the
specified month for all labels and subaccounts.

Example call:
* accounting_statement_export -p 207 -i month
* accounting_statement_export -p 206 -i quarter

#### Copy AVRO files for QA (copy_avro_files_for_qa.py)
Copy Avro files from production S3 bucket to QA environment.
This script currently only support Labels. A todo is to
support subaccounts. Once we have a list of subaccount ids,
this script will be upgraded.
@todo(pkuong): make this script to support subaccounts.
Example call:
*  copy_avro_for_qa -p 202,203,204 -i quarter
*  copy_avro_for_qa -p 202 -i month

System Requirements:
1. ReadOnly access on bucket "prod-statement-detail-exports"
2. WriteOnly access on bucket "qa-statement-detail-exports"
