I will make you pay!

This commit is contained in:
Christoffer Müller Madsen 2016-05-09 23:07:05 +02:00
commit a6aa3755f9

48
gentrans.sh Executable file
View File

@ -0,0 +1,48 @@
#!/bin/bash
amount=0
date=`date +%Y-%m-%d`
account=""
case $1 in
"fransk" )
payee="Føtex Storcenter Nord Snacks"
amount="10,00"
to="Expenses:Snacks:Franske Hotdogs"
from="Assets:Checking"
;;
"nord" )
payee="${2} Storcenter Nord"
amount="${3}"
to="Expenses:Snacks"
from="Assets:Checking"
;;
"pay" )
payee="${2}"
amount="${3}"
to="Assets:Checking"
from="Assets:Reimbursements:${2}"
;;
"owe" )
payee="${2}"
amount="${3}"
to="Assets:Reimbursements:${2}"
from="Assets:Checking"
;;
"matk" )
payee="Matematisk Kantine"
amount="${2}"
to="Expenses:Snacks:MatKant"
from="Assets:Checking"
;;
esac
echo
echo $date $payee
echo " $to $amount kr"
echo " $from"