diff --git a/public/cust_reports/.gitkeep b/public/cust_reports/.gitkeep new file mode 100644 index 00000000..8d1c8b69 --- /dev/null +++ b/public/cust_reports/.gitkeep @@ -0,0 +1 @@ + diff --git a/utils/current_customer_source_report/generateCurrentMonthCustomerSourceReport.sh b/utils/current_customer_source_report/generateCurrentMonthCustomerSourceReport.sh new file mode 100755 index 00000000..6ed86695 --- /dev/null +++ b/utils/current_customer_source_report/generateCurrentMonthCustomerSourceReport.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +MONTH=`date +"%m"` +YEAR=`date +"%Y"` +FILE_DATE=`date +"%Y%m%d"` +FILE="/var/www/resq/public/cust_reports/cust_report_$FILE_DATE.csv" +/var/www/resq/bin/console report:customer_source $YEAR $MONTH $FILE