[freeside-commits] freeside/bin billco-upload,1.3,1.4

Ivan,,, ivan at wavetail.420.am
Tue Jan 3 00:45:29 PST 2006


Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail:/tmp/cvs-serv17033

Modified Files:
	billco-upload 
Log Message:
agentnums 1-3

Index: billco-upload
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/billco-upload,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- billco-upload	1 Nov 2005 05:21:29 -0000	1.3
+++ billco-upload	3 Jan 2006 08:45:27 -0000	1.4
@@ -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
 
-zip $date.zip $date-header.csv $date-detail.csv
+  for a in header detail; do
+    mv agentnum$AGENTNUM-$a.csv agentnum$AGENTNUM-$date-$a.csv
+  done
 
-echo $dir/$date.zip
+  zip agentnum$AGENTNUM-$date.zip agentnum$AGENTNUM-$date-header.csv agentnum$AGENTNUM-$date-detail.csv
+
+  echo $dir/agentnum$AGENTNUM-$date.zip
+
+done
 



More information about the freeside-commits mailing list