You got it. IIRC I discussed to change this in v3 and also allow pre-booking manipulation of the proto objects that come out of the parser.
On Fri, Oct 21, 2022 at 11:29 PM Red S <[email protected]> wrote: > Ah, never mind, transactions are booked before the plugins run. In v2, at > least. Here is the code > <https://github.com/beancount/beancount/blob/3ec62d4d8e68f352156eec6c7068b8aee8fc65f1/beancount/loader.py#L531> > . > > > > On Friday, October 21, 2022 at 7:47:16 PM UTC-7 Red S wrote: > >> Does anyone know if it's possible for a plugin to insert an open >> directive and specify a booking method? Or do plugins run too late in the >> process to do this? Specifically, if I have this in my source: >> option "booking_method" "STRICT" >> >> and if my plugin inserts this: >> beancount.core.data.Open(metadata, date, 'Assets:XYZ', currencies, >> data.booking.FIFO) >> >> The booking method on 'Assets:XYZ' does not get set to FIFO. >> >> Thank you! >> > -- > 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/00d5c87c-e7b1-414c-b5e4-262932ef5705n%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/00d5c87c-e7b1-414c-b5e4-262932ef5705n%40googlegroups.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%2BhNXX%2BT2UAJE03YoX6V5z4H7zmKCD4HUaS5iRpaQHOnZNA%40mail.gmail.com.
