dallaslu / beancount-periodic

Beancount plugin to generate periodic transactions #Amortize #Depreciate #Recur
22 stars 6 forks source link

Is there a way I can specify the `end date` as today for `recur`? #2

Open xieweiAlex opened 1 year ago

xieweiAlex commented 1 year ago

I have been using the recur function, it's very helpful, but I don't have an duration for my recurring payment, is there way I can specify it as today?

dallaslu commented 9 months ago

If the end date is today, maybe you don't need to use recur. But you can try this:

2024-01-13 * "Provider" "Net Fee"
  recur: "1Day /Daily"
  Liababilies:CreditCard:0001    -50 USD
  Expenses:Home:CommunicationFee

BTW, this looks a bit weird.

sprnza commented 7 months ago

The reason the question is raised I think as the plugin breaks reports in Fava because it creates all transactions in future and Balance Sheet Line chart goes to the future. Why does the plugin create future transactions in the first place? Is it a limitation of some sort or could be fixed in the plugin's code?

dallaslu commented 7 months ago

@sprnza You can config Fava in your main.bean:

1970-01-01 custom "fava-option" "default-page" "income_statement/?time=+day"

1970-01-01 custom "fava-sidebar-link" "Week" "/jump?time=week"
1970-01-01 custom "fava-sidebar-link" "Month" "/jump?time=month"
1970-01-01 custom "fava-sidebar-link" "Year" "/jump?time=year+-+month"
1970-01-01 custom "fava-sidebar-link" "Prev Week" "/jump?time=week-1"
1970-01-01 custom "fava-sidebar-link" "Prev Month" "/jump?time=month-1"
1970-01-01 custom "fava-sidebar-link" "Prev Year" "/jump?time=year-1+day"
1970-01-01 custom "fava-sidebar-link" "All" "/jump?time=+day"
1970-01-01 custom "fava-sidebar-link" "Future" "/jump?time="