You can also take a look at my beansoup project on github; it is a
collection of importer and plugins for beancount and has a plugin at
automatically creates entries for deposit-in-transit transactions (there is
also one that can clear them and mark pending transactions); when both legs
share the same date, it can merge them too.
https://github.com/fxtlabs/beansoup/blob/master/beansoup/plugins/deposit_in_transit.py

You can look at the tests in
https://github.com/fxtlabs/beansoup/blob/master/tests/plugins/test_deposit_in_transit.py
to see what it does on example data.

I have been using it for over a year and it works really well for me.


On Wed, Apr 12, 2017 at 9:15 AM, <[email protected]> wrote:

> [email protected]
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/beancount/topics>
>  Google
> Groups
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email/#!overview>
> Topic digest
> View all topics
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/beancount/topics>
>
>    - Reflecting money transfers which take several days to complete
>    <#m_8205340512014157050_group_thread_0> - 1 Update
>
> Reflecting money transfers which take several days to complete
> <http://groups.google.com/group/beancount/t/77a49f2ec868a351?utm_source=digest&utm_medium=email>
> Dominik Aumayr <[email protected]>: Apr 11 03:21PM +0200
>
> I came up with a quick-and-dirty implementation of the plugin @blais
> mentioned:
>
> https://github.com/beancount/fava/pull/522
>
> With this plugin, the following transaction:
>
> plugin "fava.plugins.settlement_date" "Assets:Savings:Transfer"
>
> 2017-04-01 * "" ""
> Assets:Savings:US -100.00 USD
> Assets:Savings:JP
> settle: 2017-04-03
>
> becomes
>
> 2017-04-01 * "" "Doing some saving transfers" ^settle-43be1c
> Assets:Savings:US -100.00 USD
> Assets:Savings:Transfer
> settle: 2017-04-03
>
> 2017-04-03 * "" "Settle: Doing some saving transfers" ^settle-43be1c
> Assets:Savings:Transfer -100.00 USD
> Assets:Savings:JP 100.00 USD
>
>
> There are no tests, and the code is quite a mess, but it conveys the
> point. Comments (and contributions) very welcome, either here, or in the PR.
>
> - Dominik
>
>
> Back to top <#m_8205340512014157050_digest_top>
> You received this digest because you're subscribed to updates for this
> group. You can change your settings on the group membership page
> <https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!forum/beancount/join>
> .
> To unsubscribe from this group and stop receiving emails from it send an
> email to [email protected].
>

-- 
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/CAKgGm2hwNwbBE%3DPmLvUeoGw-HvGZBYoS_um%3DrD6Ga9BKuyQOfg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to