Prevent autoclear invoice for `t` helper

main
Ensar Sarajčić 2024-03-26 11:44:01 +01:00
parent 0f8a360b06
commit 6ff7f232c9
1 changed files with 1 additions and 1 deletions

View File

@ -210,7 +210,7 @@ time_invoice () {
LAST_PWD="$PWD" LAST_PWD="$PWD"
echo "" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal" echo "" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal"
echo "$(date '+%Y-%m-%d') * $COMMENT" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal" echo "$(date '+%Y-%m-%d') $COMMENT" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal"
echo " ($PROJECT) -$(ledger -f "$TIMESHEET_LEDGER_HOME/main.journal" bal $PROJECT and @"$COMMENT" --format "%(total)")" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal" echo " ($PROJECT) -$(ledger -f "$TIMESHEET_LEDGER_HOME/main.journal" bal $PROJECT and @"$COMMENT" --format "%(total)")" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal"
echo " Invoiced:$(echo $PROJECT | sed "s/Project://") $AMOUNT€" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal" echo " Invoiced:$(echo $PROJECT | sed "s/Project://") $AMOUNT€" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal"
echo " Magic" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal" echo " Magic" >> "$TIMESHEET_LEDGER_HOME/invoices/$(date +%Y).journal"