commit 31ae8c4b9db6914c55865aa48961e912cb3dc09f
parent 27b67989a5e3d97708fbc94f37fdecaf625cbbfe
Author: Tomas Nemec <nemi@skaut.cz>
Date: Thu, 16 Dec 2021 08:30:51 +0100
fix: check open invoices as well as overdue ones
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/fin-check-invoices b/fin-check-invoices
@@ -21,7 +21,9 @@ fa=$tempdir/fak
# Fetch transactions from fio and invoices from fakturoid
fio -a work t p -f `date -Idate --date="1 month ago"` > $fi
-fak i l -s "overdue" > $fa
+fak i l -s "overdue" > $tempdir/fakod
+fak i l -s "open" > $tempdir/fakop
+jq -s '[.[][]]' $tempdir/fakod $tempdir/fakop > $fa
# Find pairs
found=$(