2019-03-21 GnuCash IRC logs

00:00:32 *** chris has quit IRC
00:41:34 *** jervin has joined #gnucash
00:42:35 *** jervin has quit IRC
00:55:35 *** jralls has quit IRC
00:57:39 *** storyjesse has joined #gnucash
01:00:16 *** jralls has joined #gnucash
01:00:17 *** ChanServ sets mode: +o jralls
01:06:17 *** kaiz has joined #gnucash
01:06:44 *** kaiz has quit IRC
01:11:56 *** boldstripe has quit IRC
01:12:52 *** boldstripe has joined #gnucash
01:47:36 *** mklnos has joined #gnucash
02:00:26 *** storyjesse has quit IRC
02:04:16 <karelk> I have following option selected in "Preferences"
02:04:19 <karelk> "Register" -> "Reconciling" -> "Automatic credit card payment"
02:04:29 *** Mechtilde has joined #gnucash
02:06:15 <karelk> warlord: you said, "the payment dialog will only pop up if there is a payment due, and it wont pop up if I do include subaccounts"
02:06:49 <karelk> I am not sure what exactly you mean by that
02:07:13 <karelk> if reconciliation is non-zero, there will always be payment due
02:07:44 <karelk> and I do not include subaccounts
02:07:46 *** nimish2711 has quit IRC
02:07:59 <karelk> yet, I still do not get the pop up payment dialog
02:12:04 *** nimish2711 has joined #gnucash
02:20:32 *** fell has quit IRC
02:21:51 *** fell has joined #gnucash
02:21:52 *** ChanServ sets mode: +o fell
02:26:57 *** nimish2711 has quit IRC
02:44:12 *** Mechtilde has quit IRC
02:49:07 *** nimish2711 has joined #gnucash
02:54:53 *** fell has quit IRC
02:59:48 *** fell has joined #gnucash
02:59:49 *** ChanServ sets mode: +o fell
03:05:24 *** mklnos has quit IRC
03:10:31 *** mklnos has joined #gnucash
03:11:51 *** gjanssens has joined #gnucash
03:11:51 *** ChanServ sets mode: +o gjanssens
03:12:37 *** boldstripe has quit IRC
03:25:30 *** mklnos has quit IRC
03:28:21 *** mklnos has joined #gnucash
03:32:19 *** nimish2711 has quit IRC
03:46:16 *** nimish2711 has joined #gnucash
03:49:53 *** Aussie_matt has quit IRC
03:51:00 *** mklnos has quit IRC
03:51:47 *** mklnos has joined #gnucash
04:16:32 *** mklnos has quit IRC
04:17:06 *** bertbob has quit IRC
04:18:11 *** bertbob has joined #gnucash
04:18:12 *** ChanServ sets mode: +v bertbob
04:20:21 *** mklnos has joined #gnucash
04:21:14 *** bertbob has quit IRC
04:21:42 *** markolino has joined #gnucash
04:21:42 *** ChanServ sets mode: +v markolino
04:22:47 *** bertbob has joined #gnucash
04:22:47 *** ChanServ sets mode: +v bertbob
04:23:17 *** markolino_ has joined #gnucash
04:23:39 *** markolino has quit IRC
04:23:50 *** markolino has joined #gnucash
04:23:50 *** ChanServ sets mode: +v markolino
04:28:41 *** markolino has quit IRC
04:37:09 *** mklnos has quit IRC
04:38:58 *** mklnos has joined #gnucash
04:54:28 *** nimish2711 has quit IRC
05:00:31 *** nimish2711 has joined #gnucash
05:11:28 *** nimish2711 has quit IRC
06:03:27 *** Aussie_matt has joined #gnucash
06:21:00 *** nimish2711 has joined #gnucash
06:26:09 *** Jimraehl1 has joined #gnucash
06:26:55 *** Jimraehl1 has left #gnucash
06:39:06 *** oozer has joined #gnucash
06:50:00 *** warlord has quit IRC
07:03:23 *** chris has joined #gnucash
07:03:23 *** ChanServ sets mode: +v chris
07:03:32 <chris> .
07:05:05 *** storyjesse has joined #gnucash
07:19:11 <gjanssens> chris: your fix for end of month is much less complex as you had me believe yesterday :)
07:19:11 <gncbot> gjanssens: Sent 8 hours and 9 minutes ago: <chris> I can imagine that load_reports() be removed from startup, and is moved into the xml-load-file mechanism, and must be added piecemeal to other formats
07:19:12 <gncbot> gjanssens: Sent 8 hours and 9 minutes ago: <chris> save-reports should be straightforward if I have the API
07:19:13 <gncbot> gjanssens: Sent 8 hours and 6 minutes ago: <chris> so, report.scm must have a new exported routine (gnc:load-all-reports)
07:19:14 <gncbot> gjanssens: Sent 7 hours and 56 minutes ago: <chris> which will retrive saved-reports from somewhere and populate *gnc:_report-templates_* ... and this is easy to/from (xaccAccountGetNotes root) ^_
07:19:41 <chris> so, no more concerns about guile being too concise :)
07:20:32 <gjanssens> nope
07:21:03 <gjanssens> I'm learning as you go :)
07:33:24 *** boldstripe has joined #gnucash
07:36:38 <chris> there's another path to save-reports, different from gnc:save-all-reports... it's the "open reports in tabs" reports do NOT call gnc:save-all-reports... I don't know how/where they're called.
07:41:55 *** chris has left #gnucash
07:46:44 *** chris has joined #gnucash
07:46:44 *** ChanServ sets mode: +v chris
07:49:14 *** puck has quit IRC
07:51:22 *** puck has joined #gnucash
08:02:30 *** Mechtilde has joined #gnucash
08:14:35 *** Aussie_matt has quit IRC
08:23:31 *** warlord has joined #gnucash
08:24:54 <gjanssens> chris: I think that's not exactly the same code.
08:25:35 <gjanssens> At least it wasn't before I worked on it.
08:26:01 <gjanssens> I may have refactored it to use the same report serializing code
08:27:42 <gjanssens> Anyway the "open reports in tabs" are stored in the book's metafile (GNC_DATA_HOME/books/<book>.gcm)
08:28:03 <gjanssens> That file is formatted like a Windows .ini file rather than scheme code
08:28:25 <gjanssens> Let me find the initial entry points for loading and saving for you...
08:34:20 *** Robert8471 has joined #gnucash
08:34:26 *** Robert8471 has left #gnucash
08:34:58 <gjanssens> chris: saving the open tabs starts at gnc_main_window_restore_all_windows in https://github.com/Gnucash/gnucash/blob/maint/gnucash/gnome-utils/gnc-main-window.c#L913
08:35:42 *** ChanServ sets mode: +qo warlord warlord
08:35:44 <warlord> I think that ini-file stuff is just names and window sizes -- I don't think it has the report "scheme" code in there, does it?
08:35:49 <gjanssens> That will iterate over each window via gnc_main_window_restore_window in https://github.com/Gnucash/gnucash/blob/maint/gnucash/gnome-utils/gnc-main-window.c#L653
08:36:20 <gjanssens> warlord: it does store the scheme code to restore the report with its options
08:37:33 *** KevinDB has quit IRC
08:38:18 <warlord> Oh. Okay.
08:40:52 *** KevinDB has joined #gnucash
08:43:50 *** fell has quit IRC
08:45:19 *** fell has joined #gnucash
08:45:20 *** ChanServ sets mode: +o fell
08:47:55 <chris> so much mess
08:49:38 <warlord> lol
08:51:29 *** nimish2711 has quit IRC
08:57:07 <gjanssens> Sorry got interrupted here...
08:58:49 <gjanssens> Eventually the function will iterate over each tab and call gnc_main_window_restore_page for each: https://github.com/Gnucash/gnucash/blob/maint/gnucash/gnome-utils/gnc-main-window.c#L565
08:59:02 <gjanssens> And now we're almost at the end of the chain
09:00:05 <gjanssens> This function will call gnc_plugin_page_recreate_page which depending on the page type as found in the meta file will run a specialized version of this.
09:01:56 *** nimish2711 has joined #gnucash
09:04:00 <gjanssens> For report windows that's https://github.com/Gnucash/gnucash/blob/maint/gnucash/report/report-gnome/gnc-plugin-page-report.c#L893
09:04:10 <gjanssens> gnc_plugin_page_report_recreate_page
09:05:39 <chris> aha #L935 scm_id = scm_c_eval_string(option_string);
09:06:34 <gjanssens> Indeed. It reads scheme code from the "SchemeOptions" parameter in that file and the subsequently tries to evaluate it.
09:07:27 <gjanssens> Note that should have used gfec instead of direct scm_c_eval_string now that we see it.
09:07:52 <gjanssens> If scm_c_eval_string throws I think that would crash gnucash :(
09:10:20 <gjanssens> Yes, confirmed that's a potential gnucash crasher...
09:10:51 <gjanssens> Now for the other way around (save open reports) it's much the same path
09:12:12 <gjanssens> It starts with gnc_main_window_save_all_windows -> gnc_main_window_save_window -> gnc_main_window_save_page to eventually end up in gnc_plugin_page_report_save_page
09:12:15 <gjanssens> https://github.com/Gnucash/gnucash/blob/maint/gnucash/report/report-gnome/gnc-plugin-page-report.c#L813
09:13:13 <gjanssens> It will call into guile functions to do the actual serialization from there
09:13:41 <gjanssens> There's a loop to serialize embedded reports in case of a multi-column report as well
09:14:37 <warlord> gjanssens, expand gfec?
09:18:00 <chris> I think this is enough pointers for now
09:18:43 <chris> right now i'll try fix average-balance.scm
09:18:47 <gjanssens> warlord: from the gfec.c source file: gfec stands for 'guile fancy error catching'.
09:19:01 <chris> 748431
09:19:24 <gjanssens> It consists of a few convenience functions that wrap staight calls to guile functions with an exception handler
09:19:52 <gjanssens> Using these convenience wrappers prevent gnucash from crashing in case guile throws an error that would otherwise be uncaught.
09:20:14 <gjanssens> I only learned of its existence when I was converting gnucash to guile 2
09:20:32 <gjanssens> (These wrappers are part of our gnucash code by the way, not guile)
09:25:20 <warlord> Ah. ok.
09:26:19 *** kael has joined #gnucash
09:26:20 *** ChanServ sets mode: +v kael
09:26:40 <warlord> (I thought maybe it was like gnc_f..._e..._c...()
09:26:48 <warlord> .. or something like that)
09:31:27 *** mklnos has quit IRC
09:32:10 <chris> guile_forward_error_correction would have been very fancy
09:35:12 <warlord> chris, lol
09:43:56 *** markolino has joined #gnucash
09:43:56 *** ChanServ sets mode: +v markolino
09:51:06 *** storyjesse has quit IRC
09:51:06 <gjanssens> :)
09:51:12 *** storyjesse has joined #gnucash
09:52:38 *** markolino has quit IRC
09:52:55 *** markolino has joined #gnucash
09:52:56 *** ChanServ sets mode: +v markolino
09:56:32 *** KaiForce has joined #gnucash
10:01:43 <chris> it's scary that i built a custom tight loop to calculate interval averages and it ran first time O_o
10:02:00 <warlord> chris, good for you! :)
10:16:37 *** markolino has quit IRC
10:29:08 *** mklnos has joined #gnucash
10:30:26 *** guak has joined #gnucash
10:30:30 *** ArtGravity has joined #gnucash
10:30:30 *** ChanServ sets mode: +v ArtGravity
10:38:34 *** warlord has quit IRC
10:41:19 *** jervin has joined #gnucash
10:52:31 *** kael has quit IRC
11:04:27 *** fell_desktop has joined #gnucash
11:04:27 *** ChanServ sets mode: +o fell_desktop
11:25:34 *** jervin has quit IRC
11:29:24 *** kael has joined #gnucash
11:29:25 *** ChanServ sets mode: +v kael
11:35:53 *** Cuare has quit IRC
11:45:50 *** mklnos has quit IRC
11:50:02 *** mklnos has joined #gnucash
12:04:43 *** storyjesse has quit IRC
12:23:55 *** jralls has quit IRC
12:25:09 *** warlord has joined #gnucash
12:25:09 *** gncbot sets mode: +o warlord
12:29:39 *** jralls has joined #gnucash
12:29:39 *** ChanServ sets mode: +o jralls
12:33:13 *** mklnos has quit IRC
12:33:35 *** jralls has quit IRC
12:36:21 *** jralls has joined #gnucash
12:36:21 *** ChanServ sets mode: +o jralls
13:18:55 *** Mechtilde has quit IRC
13:35:14 *** kael has quit IRC
13:39:55 *** mklnos has joined #gnucash
13:43:50 *** boldstripe has quit IRC
13:44:47 *** boldstripe has joined #gnucash
14:16:41 *** kael has joined #gnucash
14:16:42 *** ChanServ sets mode: +v kael
14:41:08 *** Agfarmer18 has joined #gnucash
14:50:08 *** Mechtilde has joined #gnucash
14:58:02 *** kael1 has joined #gnucash
14:58:02 *** ChanServ sets mode: +v kael1
14:58:23 *** kael has quit IRC
14:58:57 *** kael has joined #gnucash
14:58:57 *** ChanServ sets mode: +v kael
14:59:19 *** fell has quit IRC
15:00:55 *** Agfarmer18 has quit IRC
15:01:01 *** kael1 has quit IRC
15:07:22 *** nimish2711 has quit IRC
15:07:52 *** nimish2711 has joined #gnucash
15:09:33 *** Mechtilde has quit IRC
15:12:22 *** Mechtilde has joined #gnucash
15:20:13 *** Mechtilde has quit IRC
15:21:32 *** Mechtilde has joined #gnucash
15:36:25 *** Mechtilde has quit IRC
15:36:34 *** frakturfreak has joined #gnucash
15:44:31 *** kael has quit IRC
15:44:32 *** boldstripe has quit IRC
15:45:29 *** boldstripe has joined #gnucash
15:46:38 *** Mechtilde has joined #gnucash
15:57:57 *** fell has joined #gnucash
15:57:57 *** ChanServ sets mode: +o fell
15:59:23 *** nimish2711 has quit IRC
16:04:45 *** calvinct has joined #gnucash
16:08:36 *** Agfarmer18 has joined #gnucash
16:09:20 *** calvinct has quit IRC
16:10:23 *** Agfarmer18 has quit IRC
16:11:28 *** calvinct has joined #gnucash
16:13:27 *** GNUtoo has joined #gnucash
16:15:03 *** fabior has joined #gnucash
16:17:04 *** ChanServ sets mode: +v GNUtoo
16:19:03 *** mklnos has quit IRC
16:25:18 <GNUtoo> hi, as I understand gnucash is typically used for accounting, but can it also be used to do some calculations for the business plan?
16:26:41 <GNUtoo> For instance to record ongoing costs (monthly / yearly) and understand how much to charge from that for instance
16:27:22 <jralls> Gnutoo: Do you have records of actual past costs in GnuCash?
16:31:19 <GNUtoo> I've projected costs in libreoffice calc, but I wondered if I could use gnucash instead
16:32:28 *** calvinct has quit IRC
16:39:27 *** calvinct has joined #gnucash
16:56:54 *** mklnos has joined #gnucash
16:57:38 *** gjanssens has quit IRC
17:07:25 *** Mechtilde has quit IRC
17:17:25 *** fabior has quit IRC
17:21:36 <jralls> GNUToo: Not without first having actual data to project from. If you haven't yet started operating then a spreadsheet is the way to go.
17:23:27 <GNUtoo> ok thanks a lot!
17:23:44 <GNUtoo> So when I start operating, switching to GNU cash will probably be a good idea
17:24:04 <GNUtoo> (and not before)
17:24:45 <jralls> Right.
17:28:57 *** calvinct has quit IRC
17:31:54 *** calvinct has joined #gnucash
17:45:12 *** boldstripe has quit IRC
17:45:19 *** calvinct has quit IRC
17:45:43 *** tienne has joined #gnucash
17:46:38 *** boldstripe has joined #gnucash
17:54:30 *** frakturfreak has quit IRC
18:08:34 *** ArtGravity has quit IRC
18:18:45 *** ECDHE_RSA_AES256 has joined #gnucash
18:19:53 *** ecdhe has quit IRC
18:38:01 *** mklnos has quit IRC
18:46:47 *** mklnos has joined #gnucash
19:05:00 *** Aussie_matt has joined #gnucash
19:15:00 *** jervin has joined #gnucash
19:15:33 *** mklnos has quit IRC
19:19:31 *** mklnos has joined #gnucash
19:29:04 *** jervin has quit IRC
19:46:23 *** boldstripe has quit IRC
19:47:49 *** boldstripe has joined #gnucash
19:58:44 *** mklnos has quit IRC
20:10:22 *** mklnos has joined #gnucash
20:17:14 *** tienne has quit IRC
20:17:41 *** chris has quit IRC
20:46:22 *** mklnos has quit IRC
21:05:51 *** mklnos has joined #gnucash
21:27:14 *** nimish2711 has joined #gnucash
21:45:44 *** oozer has quit IRC
21:47:34 *** boldstripe has quit IRC
21:48:59 *** boldstripe has joined #gnucash
21:49:40 *** guak has quit IRC
22:04:47 *** GNUtoo has quit IRC
22:19:27 *** mklnos has quit IRC
22:55:56 *** nimish2711 has quit IRC
22:58:15 *** nimish2711 has joined #gnucash
22:59:34 *** mklnos has joined #gnucash
23:08:06 *** nimish2711 has quit IRC
23:08:35 *** nimish2711 has joined #gnucash
23:13:43 *** puck has quit IRC
23:19:02 *** nimish2711 has quit IRC
23:21:23 *** puck has joined #gnucash
23:32:34 *** mklnos has quit IRC
23:48:44 *** boldstripe has quit IRC
23:50:09 *** boldstripe has joined #gnucash
23:54:24 *** puck has quit IRC