On Mon, Jun 6, 2016 at 2:28 AM, Daniël Bos <[email protected]> wrote:

> Hi Martin,
>
> Are you aware of the following issues:
>
> 1. Sort order (?) is incorrect. If I have a Pad and a Balance on the same
> date, the Balance applies first, causing an error:
>
> 2016-01-01 balance Assets:Bank 1,000.00 CNY
> 2016-01-02 pad Assets:Bank Expenses:Groceries
> 2016-01-02 balance Assets:Bank 900.00 CNY
>
> I'd expect pad/padding to be applied before balance assertions.
>

File order is meaningless in Beancount.
Furthermore, the effect of a Pad directive is to insert a corresponding
transaction at the _same_ date as that Pad directive.
It would be strange to insert new transactions on the following day...
Balance is defined to apply at the beginning of the day.
To accomplish what you want above, increment the balance directives by one
day.


2. Paddings involving the same account don't work, even when they're
> unambiguous:
>
> 2016-01-04 pad Expenses:Unknown Assets:Bank
> 2016-01-05 pad Assets:Bank Expenses:Groceries
> 2016-01-06 balance Expenses:Unknown 100.00 CNY
> 2016-01-07 balance Assets:Bank 700.00 CNY
>

> I've had to deal with these cases a couple of times, and had to resort to
> writing the transaction manually, which isn't ideal.
>

Ha! That's an interesting case. I haven't had to deal with those, and I
don't think there's a unit test for them.
https://bitbucket.org/blais/beancount/issues/130/padding-involving-the-same-account-doesnt



>
> Best regards,
> Daniël Bos
>
> --
> 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/CADPdpKbe_iE6fT5osz1yA3CYFmwou2s1OppXHtL%2BCoOy-a-yfg%40mail.gmail.com
> <https://groups.google.com/d/msgid/beancount/CADPdpKbe_iE6fT5osz1yA3CYFmwou2s1OppXHtL%2BCoOy-a-yfg%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/CAK21%2BhNA1Oh%2B%3DhUPWB6cFToM2qSWO2ztjLkusMSHqL1XDVQjPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to