2018-03-27 GnuCash IRC logs

00:51:01 *** Mechtilde has joined #gnucash
01:11:20 *** fell has quit IRC
01:12:24 *** fell has joined #gnucash
01:34:10 *** Mechtilde has quit IRC
01:40:57 *** ngong_ has joined #gnucash
01:45:02 <ngong_> so many namespaces in gnucash xml. Is there some documentation about it or schema?
02:12:03 *** storyjesse has quit IRC
02:18:07 *** chris has joined #gnucash
02:34:07 *** fekepp has quit IRC
02:36:23 *** gjanssens has joined #gnucash
02:36:23 *** ChanServ sets mode: +o gjanssens
02:36:38 <gjanssens> .
02:56:28 *** fekepp has joined #gnucash
03:00:03 *** jotrago has quit IRC
03:00:04 *** jotrago1 is now known as jotrago
03:06:50 *** PaulW2U has joined #gnucash
03:10:59 *** Mechtilde has joined #gnucash
03:15:12 *** fabior has joined #gnucash
03:15:53 *** harshitaneja has joined #gnucash
03:19:31 *** chris has quit IRC
03:21:36 *** sbluhm has quit IRC
03:30:02 *** chris has joined #gnucash
03:33:54 *** harshitaneja has quit IRC
04:05:49 *** fabior has quit IRC
04:15:14 *** fekepp has quit IRC
04:15:32 *** fekepp has joined #gnucash
04:32:38 *** chris has quit IRC
04:34:23 *** fekepp has quit IRC
04:34:40 *** fekepp has joined #gnucash
04:46:51 *** fekepp has quit IRC
04:47:54 *** fekepp has joined #gnucash
04:54:09 *** fekepp has quit IRC
04:56:52 *** fekepp has joined #gnucash
05:00:50 *** PaulW2U has quit IRC
05:41:02 *** pilotauto has quit IRC
05:56:20 *** fekepp has quit IRC
06:42:35 *** Aussie_matt has joined #gnucash
06:53:13 *** Jimraehl1 has joined #gnucash
06:54:15 *** Jimraehl1 has left #gnucash
07:14:18 *** hoijui has joined #gnucash
07:28:00 *** oozer has joined #gnucash
07:41:02 *** storyjesse has joined #gnucash
08:03:58 <warlord> ngong_: Every first-class object has its own namespace. There is no normative schema because the parsers and generators are all hand-written. There are some informational schemas somewhere.
08:50:45 *** Aussie_matt has quit IRC
09:02:55 *** sully has joined #gnucash
09:04:16 <sully> hi, does anyone know how to remove the Currency Symbols from Amount while exporting account reports or to export without the currency symbols
09:11:29 <ngong_> warlord: thank you, I will create some schemas for my purposes. It's easy, once I understand the stored informantion. And because its my information it should not be difficult.
09:12:32 <warlord> ngong_: Like I said, there are some schemas out there already, but they are not normative.
09:14:28 *** fabior has joined #gnucash
09:16:10 <ngong_> warlord: they are not on git. do you know where to look?
09:17:22 <warlord> See https://wiki.gnucash.org/wiki/GnuCash_XML_format
09:18:00 <warlord> There used to be a gnucash-v2.rnc file in git, but looks like it was removed.
09:21:32 <warlord> ngong_: FYI, look in gnucash git under libgnucash/doc/xml/gnucash-v2.rnc
09:21:41 <warlord> It just moved when it was restructured.
09:24:54 *** hoijui has quit IRC
09:27:42 *** benoitg has joined #gnucash
09:28:21 *** chris has joined #gnucash
09:33:10 <chris> devs: a last TR commit would be useful - the Display/Price column retrieves Commodity Price from API which returns an exact num/denom rational and deserves to be converted to decimal in the appropriate SCU
09:41:02 *** sully has quit IRC
09:51:34 <chris> welcome back gjanssens!
09:56:26 <gjanssens> Tx chris
09:57:17 *** ArtGravity has joined #gnucash
09:59:47 *** darshan has joined #gnucash
10:05:52 <gjanssens> p
10:06:13 <gjanssens> Oops that got to the wrong window...
10:08:11 *** hoijui has joined #gnucash
10:16:05 *** ngong_ has quit IRC
10:28:54 <chris> #322 will also effect https://imgur.com/a/kBJi8, don't suppose we need to do another PR...?
10:39:59 *** kael has joined #gnucash
10:45:29 *** benoitg has quit IRC
10:45:54 *** kael has quit IRC
11:08:54 *** darshan1 has joined #gnucash
11:08:59 *** NestorZ has joined #gnucash
11:09:56 *** darshan has quit IRC
11:09:57 *** darshan1 is now known as darshan
11:11:53 *** Mechtilde has quit IRC
11:23:19 *** jotrago1 has joined #gnucash
11:23:55 <jralls> chris: I suppose the bit on the left replaces that on the right? That would make a lot of users happy.
11:24:07 <chris> ofc
11:24:19 <jralls> ?
11:24:22 <chris> of course :)
11:24:34 <jralls> gjanssens: Welcome home! How was the trip?
11:30:16 *** benoitg has joined #gnucash
11:31:03 *** warlord has quit IRC
11:35:53 <jralls> chris: One PR is OK as long as the commits are separated, which they are.
11:42:50 <chris> ok i will change last commit which used flawed logic for choosing scu; i was wrongly applying commodity SCU to price; i must change to currency SCU instead. i'll multiply SCU by 100 to offer higher precision price display.
11:44:32 <jralls> How about using the account value instead of the commodity value? That lets the user override the precision.
11:45:10 <jralls> Er, by "value" I mean the value of SCU...
11:45:59 <chris> hmm this will not work; account's scu means the account commodity scu; e.g. if account tracks BTC it's likely to have high SCU like 10^6. what i must retrieve is the currency scu e.g. 100 for USD, but increase precision by * 100
11:46:11 <chris> latest commit illustrates
11:48:56 <jralls> Sorry, what I mean is the account's priv->non_standard_scu for the currency account. But that really doesn't work either because a user isn't likely to set it for a normal cash account.
11:49:30 <gjanssens> jralls: I enjoyed every bit of it :)
11:49:44 <jralls> gjanssens: Excellent!
11:49:47 <gjanssens> Still a bit jetlagged and trying to catch up.
11:50:59 <jralls> I sympathize. The price of modern travel...
11:53:31 <jralls> chris: scu * 100 works for most cases, but a) some users might use BTC as the currency and I don't think we'd want 10^-11 prices, so maybe do the *100 only if SCU is smaller than some number?
11:54:09 <chris> hmm ok I recall portfolio hardcoded some scu around 10000 somewhere
11:54:54 <jralls> Those hardcodes need to come out.
11:55:19 <jralls> I took them out of the C code but didn't go looking in the reports.
11:55:43 <chris> ok I'll try- (if scu < 10000 then multiply it 100)
11:56:06 <jralls> That seems a reasonable level.
11:57:14 <jralls> Be wary of GNC_HOW_ROUND_SIGFIGS: It really means significant figures, not significant figures of the decimal fraction. Totally the wrong thing to do.
11:57:59 <chris> i use GNC-HOW-RND-ROUND?
11:58:55 <jralls> I don't know, haven't looked, but I was more worried about how mta might have set that 10000 hardcode.
12:02:15 *** mipesom has quit IRC
12:02:33 <chris> ok midnight here, nice to chat both devs
12:02:48 <jralls> G'night, chris.
12:05:35 <gjanssens> Good night chris
12:11:37 *** marusich has quit IRC
12:18:54 *** storyjesse has quit IRC
12:28:54 *** warlord has joined #gnucash
12:39:42 *** kael has joined #gnucash
12:49:15 *** Mechtilde has joined #gnucash
13:16:12 *** O01eg has quit IRC
13:30:03 *** O01eg has joined #gnucash
13:31:47 *** warlord has quit IRC
13:41:06 *** darshan has quit IRC
13:49:45 *** Mechtilde has quit IRC
14:15:54 *** frakturfreak has joined #gnucash
14:17:02 *** mipesom has joined #gnucash
14:23:03 <jralls> gjanssens: Please take a look at https://bugzilla.gnome.org/show_bug.cgi?id=791825. Do you think the "quick solution" would blow anything up?
14:25:49 *** hoijui has quit IRC
14:27:58 <gjanssens> jralls: hard to tell. gnc_date_edit_get_date is used in quite a lot of places and the variables that get set by it in even more :(
14:28:10 *** ngong_ has joined #gnucash
14:28:36 <gjanssens> I think though the worst thing that can happen is shifting the off-by-one error to other parts
14:29:33 <gjanssens> I agree it's better to get one consistent date handling mechanism with predictable dates, so using _neutral in most situations would be a good step in that direction.
14:30:21 <jralls> That would happen if there are already adjustments for time shifts (TZ or DST) splattered around. I kind of doubt it, but I also don't want to start in the accounting period.
14:30:24 <gjanssens> Only where date ranges are involved, we'd have to convert to _day_start and _day_end and only there
14:30:34 *** ncv has joined #gnucash
14:31:33 *** fabior has quit IRC
14:33:30 <gjanssens> And even there, if *all* our dates have the correct 10:59 time, we could use <= and >= for inclusive dates in periods and day start and day end would no longer be relevant
14:34:14 <gjanssens> Do we actively correct time stamps when loading old user data ?
14:34:23 <jralls> There's a thought. I like that better than munging.
14:34:50 <jralls> We correct posted_date in a scrub. That could easily be expanded.
14:36:01 <gjanssens> Good, though probably only after 3.0
14:36:21 <jralls> Yes, after 3.0. It's a big change.
14:38:20 <jralls> For long term we should decide whether it would be better to change some fields that are currently date-time to just date.
14:38:30 <jralls> But we don't have to do that today.
14:44:48 *** ngong_ has quit IRC
14:49:49 *** fabior has joined #gnucash
14:50:31 <gjanssens> Your uservoice poll on that subject didn't attract much votes, though it's slightly in favor of removing (almost) all time information.
14:53:58 *** kael has quit IRC
14:54:10 *** kael has joined #gnucash
14:57:20 *** fabior has quit IRC
14:57:34 *** kael has quit IRC
14:59:13 *** kael has joined #gnucash
15:09:40 *** gncbot sets mode: +o fell
15:14:00 <fell> chris, 6 *significant* decimals are common in online quotes, e.g. http://www.xe.com/currencyconverter/convert/?Amount=1&From=IDR&To=EUR
15:17:00 <fell> while the reverse has only 2 :-(, but still has totally 7 significant digits
15:20:20 <fell> IIRC the 1/"10000" are the default for commodities.
15:20:32 <fell> in gnucash
15:44:26 *** kael has quit IRC
15:44:37 *** gjanssens has quit IRC
16:15:14 *** NestorZ has quit IRC
16:17:24 *** kael has joined #gnucash
16:26:57 <jralls> fell: You get 7 significant digits going the other way. ;-)
16:28:10 <fell> Yeah, there are usually 6-7 significant digits.
16:34:38 <jralls> But SCU doesn't really apply: You can't put €.0000586477 in your bank account. It's a ratio that's useful when converting millions of Ringgit.
16:43:16 *** bob_ has joined #gnucash
17:03:45 *** frakturfreak has quit IRC
17:34:12 *** pilotauto has joined #gnucash
17:34:31 *** warlord has joined #gnucash
17:40:17 *** hoijui has joined #gnucash
17:48:47 *** kael has quit IRC
18:03:34 *** hoijui has quit IRC
18:13:36 *** josephcocoa has joined #gnucash
18:17:39 *** kael has joined #gnucash
18:17:39 *** chf has quit IRC
18:18:36 *** chf has joined #gnucash
18:36:13 <fell> after I ran 'git pull https://github.com/DiMan/Gnucash unstable-transfer-0{1|2}' they did not appear on separate branches (DiMans "mistake") and github shows me only as committer of one. Should I have pushed them separate?
18:43:23 <jralls> fell: git-pull pulls the specified remote branch into the currently checked out one. It doesn't create any branches.
18:44:18 *** chf has quit IRC
18:44:28 *** chf has joined #gnucash
18:44:57 <fell> So I should have created branches "PRxxx" or "Update LL.po"?
18:46:53 <jralls> Depends on what you were looking for. You didn't break anything with what you did. If you just wanted to force a merge commit for the first one then `git pull --no-ff` would have worked.
18:47:59 <jralls> If you wanted to be conservative and have a separate branch to pull into, then yes, you need to create it and check it out (`git checkout -b PRXXX` will do that in one command) before doing the pull.
18:52:26 <jralls> @tell gjanssens I think that the issue with the gtk settings.ini on Win32 is that we're setting XDG_CONFIG_HOME only on Mac so gtk doesn't find it.
18:52:26 <gncbot> jralls: The operation succeeded.
19:01:13 *** kael has quit IRC
19:16:27 *** puck has quit IRC
19:18:08 *** puck has joined #gnucash
19:52:55 *** mib_k53ozg has joined #gnucash
20:23:00 *** puck has quit IRC
20:23:10 *** bob_ has quit IRC
20:28:43 *** ncv has quit IRC
20:41:15 *** mib_k53ozg has quit IRC
21:04:15 *** oozer has quit IRC
21:34:20 *** ArtGravity has quit IRC
21:35:14 *** storyjesse has joined #gnucash
21:35:14 *** O01eg has quit IRC
21:35:39 *** O01eg has joined #gnucash
21:37:52 *** warlord has quit IRC
22:51:14 *** storyjesse1 has joined #gnucash
22:51:41 *** storyjesse has quit IRC
22:51:42 *** storyjesse1 is now known as storyjesse
23:44:53 <arahael> I like how gnucash has it's UI specified in XML files. Neat. :)