summaryrefslogtreecommitdiff
path: root/bin/billco-upload
diff options
context:
space:
mode:
authorivan <ivan>2005-10-28 17:10:45 +0000
committerivan <ivan>2005-10-28 17:10:45 +0000
commit0da0726449c32868963ddace7630892c37cdeb6f (patch)
tree10c7fb408d66057c004dd219d264f43abbc04e46 /bin/billco-upload
parentf1a6cb69d064ea81e51f6bc29e2cdb7d695980a6 (diff)
beginning of quick billco zip & upload tool
Diffstat (limited to 'bin/billco-upload')
-rw-r--r--bin/billco-upload14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/billco-upload b/bin/billco-upload
new file mode 100644
index 0000000..b224605
--- /dev/null
+++ b/bin/billco-upload
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+date = `date`
+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
+
+zip $date.zip $date-header.csv $date-detail.csv
+
+echo $dir/$date.zip
+