It should work the same.

On Fri, Dec 23, 2022, 11:01 William Bean <[email protected]> wrote:

> Is it possible to replace a portion of a posting (e.g. change just the
> units)? I found this code in one of the plugins for doing just that with
> metadata:
>                     posting = posting._replace(meta=meta)
>
> However, that doesn't seem to work with other parts of the posting such as
> the units. Is it possible to do that? Right now I've been creating a
> posting from scratch and just using that, but that seems like overkill.
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/CAO0DHEB7jg0Ls5krnKqqfaPE6k3ff_VQf1qLCzUz6MxRT5hwcA%40mail.gmail.com
> <https://groups.google.com/d/msgid/beancount/CAO0DHEB7jg0Ls5krnKqqfaPE6k3ff_VQf1qLCzUz6MxRT5hwcA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhNY1L7bEmQKmD2DV1-oF2497Uh_-txyXLZ9n9LJ7daerg%40mail.gmail.com.

Reply via email to