2023-01-21 GnuCash IRC logs

00:03:16 *** cliff_ has quit IRC
00:48:53 *** NoobAlice has quit IRC
01:32:28 <chris> jralls: I think SCM list->std::vector is much clearer with the for (SCM n = lst; !scm_is_null(n); n = scm_cdr(n)) construct
01:52:15 *** fell has quit IRC
01:53:34 *** fell has joined #gnucash
01:53:34 *** ChanServ sets mode: +o fell
01:54:20 *** jralls has quit IRC
01:56:05 *** jralls has joined #gnucash
01:56:05 *** ChanServ sets mode: +o jralls
02:23:01 *** gjanssens has joined #gnucash
02:23:01 *** ChanServ sets mode: +o gjanssens
02:29:52 *** jralls has quit IRC
02:30:55 *** jralls has joined #gnucash
02:30:55 *** ChanServ sets mode: +o jralls
02:54:34 *** Aussie_matt has joined #gnucash
03:29:02 *** gjanssens has quit IRC
04:14:41 *** gandalf has joined #gnucash
04:25:58 *** gjanssens has joined #gnucash
04:25:59 *** ChanServ sets mode: +o gjanssens
05:32:35 *** bertbob has quit IRC
05:34:05 *** bertbob has joined #gnucash
05:34:05 *** ChanServ sets mode: +v bertbob
05:36:18 *** fabior has joined #gnucash
05:55:13 *** fabior has quit IRC
05:59:18 *** chris has quit IRC
06:02:36 *** chris has joined #gnucash
06:02:36 *** ChanServ sets mode: +v chris
08:11:02 *** gjanssens has quit IRC
08:14:47 *** gjanssens has joined #gnucash
08:14:47 *** ChanServ sets mode: +o gjanssens
08:26:23 *** Aussie_matt has quit IRC
08:28:41 *** palerider has joined #gnucash
08:28:58 *** palerider has left #gnucash
09:16:17 *** gjanssens has quit IRC
09:23:47 *** gjanssens has joined #gnucash
09:23:47 *** ChanServ sets mode: +o gjanssens
09:56:41 *** starman has quit IRC
09:57:31 *** starman has joined #gnucash
11:26:24 *** undoingtech has joined #gnucash
11:53:06 *** NoobAlice has joined #gnucash
11:53:06 *** ChanServ sets mode: +v NoobAlice
13:12:30 *** undoingtech has quit IRC
13:13:13 *** undoingtech has joined #gnucash
13:24:42 *** gjanssens has quit IRC
14:25:44 <jralls> chris, code reference re SCM list->std::vector?
15:35:59 *** sunyibo has quit IRC
17:02:37 *** gandalf has quit IRC
17:18:22 *** JoeJohnson929 has joined #gnucash
17:23:50 *** ChanServ sets mode: +v JoeJohnson929
17:29:06 <JoeJohnson929> Hi guys! Question. In Quickbooks Desktop (and with Online), they have something called classes, which you can use to track income/expense data to say a specific business or other asset - e.g. a rental property, a soda machine, etc. You might have multiple classes within one LLC/business, for example, if that LLC owns 10 rental properties. And you might need to generate a P&L report by that
17:29:06 <JoeJohnson929> class - to say see the income/expenses of a rental property, or another. In Quicken it exists as well, but they call it a tag (instead of a class). Is there anything like that in GnuCash?
17:42:49 <jralls> No. You have to reflect that in your chart of accounts.
17:44:43 <jralls> GnuCash does have three free-text fields per transaction and two more per split so if you're very careful you can fudge it using one of them and filtering on the chosen field.
17:45:31 <jralls> But from an accounting viewpoint it's much better to do it right and reflect the different categories in your CoA.
17:48:41 <JoeJohnson929> Gotcha - I guess I never did it that way - so I don't know how haha! I do my own bookkeeping, as a real estate investor, and I've always used classes to track income/expenses for properties (e.g. a flip property, or a rental property)
17:49:36 <JoeJohnson929> I have an accountant who tracks everything else relevant, and who does my taxes.
17:50:00 <JoeJohnson929> Thank you
17:50:08 *** JoeJohnson929 has quit IRC
18:55:58 *** Aussie_matt has joined #gnucash
19:11:02 *** undoingtech has quit IRC
19:21:30 <chris> jralls: no reference. I like to group all loop statements together. gnc-optiondb.i has all sorts of combinations...
19:22:45 <chris> gnc-optiondb.i#L473 not strictly necessary to test "&& scm_car(next)" which will never return a NULL
19:23:43 <chris> more seriously: #1442 is the future of asisstant-stock-transaction.cpp, and I won't be able to do the changes as requested... no time at all
19:25:59 <jralls> I thought it was possible to have nulls in a scheme list. But what's the relationship between asst-stock-txn and optiondb?
19:26:33 <chris> no relation at all
19:26:35 <jralls> Or did you mean PR1442 and not gnc-optiondb.i line 442?
19:26:47 <chris> yes PR 1442
19:27:13 <chris> if an SCM list has NULL, then you'll test it via "scm_is_null(scm_car(lst))"
19:27:23 <chris> an SCM object is never NULL
19:27:56 <jralls> Got it.
19:29:13 <chris> [afaik an SCM object which is scm_null is a global unique obj, so that if (scm_is_null(objA)) and (scm_is_null(objB)) are both true, then we can conclude (objA==objB)]
19:30:41 <jralls> or rather (eq objA objB) ;-) with whichever eq is the right one to use there.
19:34:59 <jralls> I haven't looked at #1442 recently to see how much of it you've fixed. Does no more time mean no more time to do significant work on it for 5.0?
19:36:45 <chris> No more time means IRL duties preclude the context switch required do the major refactoring :)
19:38:09 <chris> 2.5yrs old now...
19:39:28 <jralls> Time for #2! ;-)
19:40:17 <jralls> So I guess you want me to either decide that 1442 is good enough or finish cleaning it up.
19:42:10 <chris> (1)maybe, (2)agree either
19:47:41 <chris> the only significant change I could push for 5.0 or 6.0 is upgrade chartjs to 3 so that #759 could be merged in. this will require that (1) i run a sandbox win32 build (2) upgrade chartjs 2->3 within the build (3) check if the chartjs3 doesn't barf libwebkit1 (4) perform the html-chart and reports upgrades (5) add sankey js and chart
19:53:19 <jralls> The sankey chart is pretty and all but from a practical standpoint it's not really that compelling. That aside we really do need to find a better solution for displaying reports on Win32.
19:55:54 <jralls> That's a bit out of your wheelhouse even without a 2yo to manage. (And yeah, managing 2yo and herding cats are in the same category)
20:52:07 <CDB-Man> chris: happy lunar new year!
20:59:15 <chris> CDB-Man: happy new year of rabbit!