One small bug:

The import statement on line 27 does not work. Instead it should be:
from dateutil.relativedelta import relativedelta

On Thu, Sep 7, 2017 at 10:16 AM, Metin Akat <[email protected]> wrote:

> Wow, this seems to be exactly what I need.
> Thank you! I'll try it and will report back.
>
> On Thu, Sep 7, 2017 at 2:00 AM, Cary Kempston <[email protected]> wrote:
>
>> On Wed, Sep 6, 2017 at 12:32 AM, Metin Akat <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> Is there some plugin to ease me with generation of depreciation
>>> transactions?
>>> For every more substantial thing I own I create its own account where I
>>> depreciate it over time by manually entering monthly transactions for
>>> depreciation. As you can imagine, this is very tedious.
>>>
>>>
>> I wrote something similar, except instead of writing a desired final
>> balance you have to enter amount of depreciation over the time period you
>> want.  I use it primarily for things like insurance premiums that are paid
>> annually or every six months so that my expenses are spread out evenly over
>> the year, but also use it to record depreciation on my cars.
>>
>> The plugin is by no means perfect (it assumes everything is monthly), but
>> it might work for you.  Here it is:
>>
>> https://gist.github.com/cdjk/0b8da9e2cc2dee5f3887ab5160970faa
>>
>> And here's what an example file using the plugin looks like:
>>
>> plugin "amortize_over"
>>
>> 2017-06-01 open Assets:Bank:Checking
>> 2017-06-01 open Assets:Prepaid-Expenses
>> 2017-06-01 open Expenses:Insurance:Auto
>>
>> 2017-06-01 * "Pay car insurance"
>>     Assets:Bank:Checking       -600.00 USD
>>     Assets:Prepaid-Expenses
>>
>> 2017-06-01 * "Amortize car insurance over six months"
>>     amortize_months: 6
>>     Assets:Prepaid-Expenses       -600.00 USD
>>     Expenses:Insurance:Auto
>>
>> For depreciation, I do something like this, if I think my car will be
>> worth 12k less in three years:
>>
>>  2017-01-01 * "Car Depreciation"
>>      amortize_months: 36
>>      Expenses:Depreciation:Car    12,000.00 USD
>>      Assets:Auto:Car
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Beancount" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To post to this group, send email to [email protected].
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/beancount/CAN3-EDXm-0M-WHKGy6n-Jd%3DKDz3Jz5izsqdOd4ExY0R
>> D7v_7pQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/beancount/CAN3-EDXm-0M-WHKGy6n-Jd%3DKDz3Jz5izsqdOd4ExY0RD7v_7pQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAEk80b%3D%2BHnU6Y6uywKFAz0hgOPW0CPZOLPbOTfTk6pUGynpj8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to