É SEMPRE VOGLIOSA DI SESSO FOCOSO: #MARIAPAOLATOSCHI DI JP MORGAN! É SEMPRE INCREDIBLMENTE NINFOMANE: MARIA PAOLA TOSCHI DI #JPMORGAN! NE SCRIVE CON ENTUSIASMO, #ANDREASNIGG DI BANK J SAFRA SARASIN ZU

2021-11-09 Thread MAURIZIO PORCARI FIDEURAM INVESTIMENTI SGR
É SEMPRE VOGLIOSA DI SESSO FOCOSO: #MARIAPAOLATOSCHI DI JP MORGAN! É SEMPRE INCREDIBLMENTE NINFOMANE: MARIA PAOLA TOSCHI DI #JPMORGAN! NE SCRIVE CON ENTUSIASMO, #ANDREASNIGG DI BANK J SAFRA SARASIN ZURICH. CHE PASSAVA WEEK ENDS DI SESSO SFRENATO..CON LEI, STILE PORCONE "ARCORE^HARDCORE", FRA

importer with data.Posting and implicit prices

2021-11-09 Thread Joost Brok
Hello everyone, I'm really learning beancount and building my importers. We're an international family so the multi-currency support trough fava makes our life easier to keep track of expenses against our two base account currencies. After doing some research I found out I can simplify currency

Re: importer with data.Posting and implicit prices

2021-11-09 Thread Martin Blais
units has to be of type 'Amount()' when you create the posting. It looks like you might have set it to a str. (Python doesn't offer much help, there's a type validation function somewhere in beancount.core.data.) On Tue, Nov 9, 2021 at 8:05 AM Joost Brok wrote: > Hello everyone, I'm really lear

Re: importer with data.Posting and implicit prices

2021-11-09 Thread Joost Brok
Thanks for your reply! After fiddling around and looking at the docs it seemed only the currency arg is not validated and allows any string. Also number couldn't been set to None. So I'm now using a creative solution to put the base decimal amount in number (e.g. -139.99)and the rest of the str

Re: importer with data.Posting and implicit prices

2021-11-09 Thread Martin Blais
This is not going to work. Don't do that. If you're trying to build something that will serialize out, use the Posting's price. Unfortunately you can't build a Posting that will output a total amount at the moment, since that field gets converted on parsing. You could always just use good old prin

Re: importer with data.Posting and implicit prices

2021-11-09 Thread Joost Brok
Thanks! I will leave it for now then as fava indeed throws errors and isn't displaying the right values. I wanted to see if I could use one base currency but I don't have the further skills to develop an importer for this to import implicit prices at scale from the CSV. :) I appreciate your hel

Re: importer with data.Posting and implicit prices

2021-11-09 Thread Joost Brok
Thanks! I will leave it for now then as fava indeed throws errors and isn't displaying the right values. I wanted to see if I could use one base currency but I don't have the further skills to develop an importer for this to import implicit prices at scale from the CSV. :) I appreciate your hel