X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fbillco-upload;h=ce4a43d5f4ed54a4a87fef693d77af6767d66260;hb=781e704eb702673bfcad0690cc94032e4279d7e6;hp=165eafadf65c951d59a0c56d7a48ea1b3228a453;hpb=82a758a8e4aa37e1e312969b2b23b611205be9ec;p=freeside.git diff --git a/bin/billco-upload b/bin/billco-upload index 165eafadf..ce4a43d5f 100644 --- a/bin/billco-upload +++ b/bin/billco-upload @@ -1,14 +1,20 @@ #!/bin/sh +AGENTNUMS="1 2 3" + date=`date +"%Y%m%d"` dir="/usr/local/etc/freeside/export.DBI:Pg:dbname=freeside/cust_bill" cd "$dir" -for a in header detail; do - mv spool-$a.csv $date-$a.csv -done +for AGENTNUM in $AGENTNUMS; do + + for a in header detail; do + mv agentnum$AGENTNUM-$a.csv agentnum$AGENTNUM-$date-$a.csv + done -echo zip $date.zip $date-header.csv $date-detail.csv + zip agentnum$AGENTNUM-$date.zip agentnum$AGENTNUM-$date-header.csv agentnum$AGENTNUM-$date-detail.csv -echo $dir/$date.zip + echo $dir/agentnum$AGENTNUM-$date.zip + +done