Simple accounting helper.
Accounting data is kept as text files in a directory. The 'l' command loads the highest-named file. When saving after updates, a new higher-named file is written.
Reverting to a previous saved state is easy: Just remove higher-named files as appropriate.
Upon start the program enters an interactive loop. Commands are:
Load accounting data.
Set the year to be in focus. The year is shown in the prompt. By default the current year is assumed.
Print a summary for the year in focus.
Print details for the year in focus.
Book a cost (the amount shall include 25% VAT).
Book a cost (the amount shall include 12% VAT).
Book a cost (the amount shall include 6% VAT, e.g. travel cost).
Book an earning. Use the invoice date, don't use the date when payment happens. Specify the amount including 25% VAT.
Book an earning. Use the invoice date, don't use the date when payment happens. Specify the amount including 12% VAT.
Book an earning. Use the invoice date, don't use the date when payment happens. Specify the amount including 6% VAT.
Book an earning. Use the invoice date, don't use the date when payment happens. Specify the amount including VAT.
The invoice for December Y1 work is split into a net earning and a VAT part. The net earning shall be booked on the Y1 year, and the VAT part shall be booked on the Y2 year.
To achieve this, book the earning and a negative accrual in year Y2, and a positive accrual in Y1. The accrual shall amount to the net earning of the invoice, thus the net earning gets "pushed backwards in time" from Y2 to Y1.
Save accounting data to a new file. The new high-named file is the previous file with new events appended.
Show built-in help.