So having thought about this issue some more, I think I need some advice on a core architectural question.We want to fill out cost information on an augmenting (receiving) leg of a transfer, such that it matches the cost information on the reducing legs of the transfer. Should this be part of:1) booking, because booking fills out cost information, and in particular, here we are filling out exactly the same cost information on the augmenting legs that booking is computing for the reducing legs,or2) imputation,
because imputation is about inferring values to make the transaction balance, and to make a transaction balance, the augmenting cost info must match the reducing cost infoConceptually, making it part of imputation feels more correct, but booking is already filling out some cost info (the date) and we'd have to undo that in imputation -- implementation wise it feels easier to implement this in booking.
On Sat, Aug 19, 2023 at 5:27 PM Eric Altendorf <erical...@gmail.com> wrote:Well, I actually just realized that I can't assume there is only one reduction posting, because the reduction may pull from multiple lots. I need to investigate more.On Sat, Aug 19, 2023 at 2:05 PM Eric Altendorf <erical...@gmail.com> wrote:Hi all,A few recent (and older threads) have discussed "transferring" cost information from account to account in a transfer transaction (reduction in one account with a balancing augmentation in another account).I've studied the code and current behavior and it seems quite feasible to improve how this works. I wrote up my findings and proposal here:I am sure my understanding of the system is limited and flawed, however, so I would greatly appreciate feedback, on my understanding of the problem and the current behavior, as well as on the proposed changes.Thank you in advance,eric
--
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 beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAFXPr0uQH%2BwU37Rj5CWnNRW%3D5%2Bdmxiu7Ccz5nedd3YE2tkJ3OA%40mail.gmail.com.
On Sat, Aug 19, 2023, 21:14 Eric Altendorf <erical...@gmail.com> wrote:So having thought about this issue some more, I think I need some advice on a core architectural question.We want to fill out cost information on an augmenting (receiving) leg of a transfer, such that it matches the cost information on the reducing legs of the transfer. Should this be part of:1) booking, because booking fills out cost information, and in particular, here we are filling out exactly the same cost information on the augmenting legs that booking is computing for the reducing legs,or2) imputation,Fwiw I dub this "interpolation" in the code
because imputation is about inferring values to make the transaction balance, and to make a transaction balance, the augmenting cost info must match the reducing cost infoConceptually, making it part of imputation feels more correct, but booking is already filling out some cost info (the date) and we'd have to undo that in imputation -- implementation wise it feels easier to implement this in booking.It's really not obvious. I've thought a lot about them interplay of booking an interpolation in the past and looked at many scenarios and haven't found an elegant solution yet (one may exist). I'm not super happy about the ordering in which I carry out those two. I think what I do now is try to do the reductions first in order to gather information that I can then use in interpolation. There are some comments in the code about this.
----On Sat, Aug 19, 2023 at 5:27 PM Eric Altendorf <erical...@gmail.com> wrote:Well, I actually just realized that I can't assume there is only one reduction posting, because the reduction may pull from multiple lots. I need to investigate more.On Sat, Aug 19, 2023 at 2:05 PM Eric Altendorf <erical...@gmail.com> wrote:Hi all,A few recent (and older threads) have discussed "transferring" cost information from account to account in a transfer transaction (reduction in one account with a balancing augmentation in another account).I've studied the code and current behavior and it seems quite feasible to improve how this works. I wrote up my findings and proposal here:I am sure my understanding of the system is limited and flawed, however, so I would greatly appreciate feedback, on my understanding of the problem and the current behavior, as well as on the proposed changes.Thank you in advance,eric
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 beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAFXPr0uQH%2BwU37Rj5CWnNRW%3D5%2Bdmxiu7Ccz5nedd3YE2tkJ3OA%40mail.gmail.com.
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 beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhM_kkGq8R-ASb%2BVkX5ZoLCdJLp41q43Mi0P3PQXtmEXLA%40mail.gmail.com.