summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorivan <ivan>2007-06-09 00:53:03 +0000
committerivan <ivan>2007-06-09 00:53:03 +0000
commita7d0237d5a6a11c4c1c85d0fbb6700e7dd518bc3 (patch)
treec56960c46f45cb96ed5d50f1a184737b4fc912e0 /bin
parent893a697cfa7c60c9663057a02a251e7397813acc (diff)
adding bill-for-next* hacks like bill-next* stuff but with -n flag, for skycatcher
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bill-for-nextmonth5
-rwxr-xr-xbin/bill-for-nextyear5
2 files changed, 10 insertions, 0 deletions
diff --git a/bin/bill-for-nextmonth b/bin/bill-for-nextmonth
new file mode 100755
index 000000000..e1a33764e
--- /dev/null
+++ b/bin/bill-for-nextmonth
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+month=`date +%m`
+nextmonth=`expr $month + 1`
+/usr/local/bin/freeside-daily -d $nextmonth/1/`date +%Y` -n fs_daily
diff --git a/bin/bill-for-nextyear b/bin/bill-for-nextyear
new file mode 100755
index 000000000..1430a5898
--- /dev/null
+++ b/bin/bill-for-nextyear
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+year=`date +%Y`
+nextyear=`expr $year + 1`
+/usr/local/bin/freeside-daily -d 1/1/$nextyear -n fs_daily