adding bill-for-next* hacks like bill-next* stuff but with -n flag, for skycatcher
authorivan <ivan>
Sat, 9 Jun 2007 00:53:03 +0000 (00:53 +0000)
committerivan <ivan>
Sat, 9 Jun 2007 00:53:03 +0000 (00:53 +0000)
bin/bill-for-nextmonth [new file with mode: 0755]
bin/bill-for-nextyear [new file with mode: 0755]

diff --git a/bin/bill-for-nextmonth b/bin/bill-for-nextmonth
new file mode 100755 (executable)
index 0000000..e1a3376
--- /dev/null
@@ -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 (executable)
index 0000000..1430a58
--- /dev/null
@@ -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