2019-02-26 GnuCash IRC logs

01:12:25 *** Mechtilde has joined #gnucash
01:23:57 *** warlord has joined #gnucash
01:46:22 *** fell has quit IRC
01:47:40 *** fell has joined #gnucash
01:51:12 *** Mechtilde has quit IRC
01:59:36 *** gour has joined #gnucash
03:01:07 *** bertbob has quit IRC
03:03:39 *** CDB-Away_ has joined #gnucash
03:04:26 *** CDB-Man_ has joined #gnucash
03:04:49 *** CDB-Away has quit IRC
03:05:10 *** CDB-Man has quit IRC
03:07:32 *** bertbob has joined #gnucash
03:07:54 *** gjanssens has joined #gnucash
03:07:54 *** ChanServ sets mode: +o gjanssens
03:14:07 *** bertbob has quit IRC
03:17:51 *** bertbob has joined #gnucash
03:22:26 *** Mechtilde has joined #gnucash
03:28:36 *** Aussie_matt has quit IRC
04:17:10 *** Mechtilde has quit IRC
04:17:26 *** Mechtilde has joined #gnucash
04:31:00 *** boldstripe has joined #gnucash
04:33:10 *** storyjesse has joined #gnucash
05:36:27 *** nimish has joined #gnucash
05:42:07 *** chris has joined #gnucash
05:42:49 *** gour_ has joined #gnucash
05:44:58 *** gour has quit IRC
06:15:11 *** boldstripe_ has joined #gnucash
06:15:25 *** boldstripe has quit IRC
06:15:25 *** boldstripe_ is now known as boldstripe
06:27:42 <chris> GnuFiBux's recent change to report.scm has really multiplied the code smell, and the 'old-report' code is now unintelligible.
06:32:41 * chris would be keen to nuke old-report-code mechanism
06:35:13 *** User__ has joined #gnucash
06:36:22 *** nimish has quit IRC
06:36:26 *** Jimraehl1 has joined #gnucash
06:36:47 *** nimish has joined #gnucash
06:37:39 *** Jimraehl1 has left #gnucash
06:48:20 *** User__ has quit IRC
07:01:44 *** boldstripe has quit IRC
07:08:25 <chris> https://github.com/christopherlam/gnucash/commits/maint-report-refactoring is current iteration... makes report.scm less embarrassing (tag gjanssens)
07:12:37 <gjanssens> chris: I see you are very busy :)
07:12:55 <gjanssens> Unfortunately I can't review atm...
07:14:58 *** nimish has quit IRC
07:23:37 <chris> sure not needing review; just trying to make this code less stinky!
07:26:24 <chris> if anything https://github.com/christopherlam/gnucash/commits/maint is my current proposal to fix gnufibux's test-report-system.scm which I believe was badly done. only the last commit would be worth a quick glance -- I'd hope is far less stinky :)
07:27:40 <chris> (my belief that a function being tested shouldn't be modified to return #f just to signify success -- test failure/success should be contingent upon testing *outcome* e.g. successful report definition populating the report-templates list.
07:27:59 <chris> *return #f just to signify failure
07:28:40 *** jervin has joined #gnucash
07:53:28 *** nimish has joined #gnucash
07:56:00 *** jervin has quit IRC
07:56:18 <gjanssens> chris: to be pedantic counting the number of test templates is not exactly the same as testing for a successful gnc:define-report run
07:57:03 <gjanssens> If you don't like the higher level asserts, just move them into each check function directly
07:57:29 <gjanssens> (well, that's my suggestion anyway)
08:03:14 <gjanssens> And nevermind my last comment. I re-read your commit message and understand it is your goal to change gnc:define-report to no longer consistently emit #f on failure
08:03:26 <gjanssens> Or an even more profound refactoring
08:03:52 <chris> exactly. my issue is https://github.com/Gnucash/gnucash/blob/maint/gnucash/report/report-system/report.scm#L190 - it's being labelled "report-definition is faulty; has no name" returning #f, but this #f was inserted at the *wrong* close-parens level, and was being used to return "report-definition has no guid; autogenerated guid used" and the #f was being used in test-report-system to detect 'no-guid report definition'. wrong, wrong,
08:03:52 <chris> wrong.
08:04:04 <chris> this #f is new in june 2018.
08:04:38 <chris> anyway, i'm emotional about this.
08:04:50 <chris> functions shouldn't be aware they're being tested!
08:06:29 <gjanssens> That part I fully agree with :)
08:07:13 <chris> this #f should be the "else" part of https://github.com/Gnucash/gnucash/blob/maint/gnucash/report/report-system/report.scm#L149 but has been written to be the "returned-value" part of https://github.com/Gnucash/gnucash/blob/maint/gnucash/report/report-system/report.scm#L148
08:07:15 <chris> makes all the difference!
08:08:10 <gjanssens> I started my pedantic message assuming return #f was used by gnucash to detect failed report generation. I now get your point it was only added for testing...
08:10:18 <chris> perhaps one day, report.scm will save reports into KVP tree :)
08:14:35 *** nimish has quit IRC
08:39:26 *** chris has quit IRC
08:48:58 <gjanssens> @tell chris I hope not. KVP should die. I do hope one day we will have a proper data structure to store reports though.
08:48:58 <gncbot> gjanssens: The operation succeeded.
08:50:20 <gjanssens> @tell chris And by the way before that time I hope saved report presets will have been transformed into something like json or yaml. I can't think of a good reason to save it as executable scheme.
08:50:20 <gncbot> gjanssens: The operation succeeded.
08:50:53 <gjanssens> @tell chris before that time or at the same time at least
08:50:53 <gncbot> gjanssens: The operation succeeded.
09:06:59 *** boldstripe has joined #gnucash
09:09:29 *** boldstripe has quit IRC
09:26:10 *** kael has joined #gnucash
09:33:36 *** chris has joined #gnucash
09:33:41 <chris> .
09:33:41 <gncbot> chris: Sent 44 minutes ago: <gjanssens> I hope not. KVP should die. I do hope one day we will have a proper data structure to store reports though.
09:33:42 <gncbot> chris: Sent 43 minutes ago: <gjanssens> And by the way before that time I hope saved report presets will have been transformed into something like json or yaml. I can't think of a good reason to save it as executable scheme.
09:33:43 <gncbot> chris: Sent 42 minutes ago: <gjanssens> before that time or at the same time at least
09:39:40 *** fabior has joined #gnucash
09:39:45 <chris> the motivation for KVP was that 'saved-reports' could belong to a datafile. or should be saved alongside the datafile. perhaps filename.json will contain saved-reports, book-specific preferences etc.
09:40:02 <chris> (guile-json already in place!)
09:41:24 <gjanssens> I'm not debating the saved-reports belong to a datafile :) In fact I think we should put them inside the datafile at some point for various reasons that have been rehashed recently on the devel mailinglist
09:41:49 <gjanssens> But I don't think the gnucash KVP model is the proper storage format even inside a data file.
09:42:05 <chris> ok leave this highlevel thinking to you and jralls
09:42:21 <gjanssens> :D
09:42:39 <gjanssens> But yes guile-json can play an important role in the transition :)
09:46:14 *** immae has quit IRC
09:48:18 *** immae has joined #gnucash
10:21:45 *** Mechtilde has quit IRC
10:22:10 *** Mechtilde has joined #gnucash
10:22:55 *** oozer has joined #gnucash
10:24:05 *** ArtGravity has joined #gnucash
10:25:06 *** storyjesse has quit IRC
10:25:15 *** Mechtilde has quit IRC
10:33:04 *** fabior has quit IRC
10:45:18 *** judoal has quit IRC
11:13:31 *** fabior has joined #gnucash
11:37:09 *** storyjesse has joined #gnucash
11:38:24 *** pikurasa has joined #gnucash
11:39:37 <pikurasa> Can you print paychecks using GNU Cash? If so, where is this documented? I have read this: https://wiki.gnucash.org/docs/C/gnucash-guide/chapter_bus_pay.html
11:51:34 *** guak has joined #gnucash
11:56:13 *** Mechtilde has joined #gnucash
12:06:08 *** storyjesse has quit IRC
12:15:51 <gjanssens> pikurasa: if you mean by that you can print a check to pay an invoice, then yes
12:16:39 <gjanssens> You do so by selecting the invoice, choose "Pay Invoice" and at the bottom of the payment window you find a checkbox to print a check.
12:17:07 <gjanssens> If you enable this, normally the check print dialog should appear after you click ok in the payment window
12:19:12 *** guak has quit IRC
12:23:48 <pikurasa> gjanssens: thank you for this info. I was wondering if you could write paychecks for employees that details the important tax information.
12:29:25 <gjanssens> pikurasa: no, gnucash has no support for payroll.
12:40:00 <pikurasa> So what free/libre software options are there for payroll?
12:41:11 *** boldstripe has joined #gnucash
12:46:09 <gjanssens> pikurasa: I have no idea. I have never needed that feature. Sorry.
12:50:34 <pikurasa> Thanks gjanssens!
12:50:45 <pikurasa> Well, if anyone knows, I would appreciate it.
12:51:14 <pikurasa> I know that FSF uses https://www.sql-ledger.com/ but I am /trying/ to be as lazy as possible (if possible)
12:51:36 <gour_> pikurasa: i'm not using it, but try with https://www.tryton.org/
12:53:00 *** gour_ is now known as gour
12:54:55 <pikurasa> Ye~~~ah! At first glance, this looks like what I am talking about!
12:58:01 <warlord> .
12:59:56 <warlord> <chris> functions shouldn't be aware they're being tested! ---- I fully agree
13:01:12 <warlord> pikurasa, GnuCash can account for the taxes and withholdings for payroll, but cannot compute it and probably can't realistically print it
13:01:38 <warlord> and... gotta run again -- off to dinner.
13:01:52 *** judoal has joined #gnucash
13:03:55 <pikurasa> thanks warlord
13:13:19 *** calvinct has joined #gnucash
13:14:23 *** judoal has quit IRC
13:18:57 *** oozer has quit IRC
13:33:00 *** guak has joined #gnucash
13:41:38 *** fabior has quit IRC
14:00:14 *** Agfarmer18 has joined #gnucash
14:19:27 *** pikurasa has quit IRC
14:28:49 *** Agfarmer18 has quit IRC
14:29:04 *** oozer has joined #gnucash
14:42:02 *** boldstripe has quit IRC
14:47:26 *** fabior has joined #gnucash
15:18:53 *** calvinct has quit IRC
15:18:59 *** Mechtilde has quit IRC
15:24:12 *** guak has quit IRC
15:32:59 *** monkeyjuice has joined #gnucash
15:35:31 *** monkeyjuice has quit IRC
16:00:05 *** calvinct has joined #gnucash
16:02:16 *** calvinct has quit IRC
16:06:48 *** jervin has joined #gnucash
16:11:41 *** fabior has quit IRC
16:13:39 *** jervin has quit IRC
16:16:51 *** nimish has joined #gnucash
16:32:54 *** gour has quit IRC
16:43:40 *** Aussie_matt has joined #gnucash
16:46:20 *** tienne has joined #gnucash
17:08:45 *** guak has joined #gnucash
17:29:47 *** gjanssens has quit IRC
17:49:39 *** tienne has quit IRC
18:22:32 *** kael has quit IRC
18:59:13 *** chris has quit IRC
19:42:44 *** guak has quit IRC
21:18:03 *** nimish has quit IRC
21:18:32 *** oozer has quit IRC
21:21:50 *** nimish has joined #gnucash
21:27:01 *** nimish has quit IRC
21:32:05 *** nimish has joined #gnucash
22:09:17 *** schnozzle has joined #gnucash
22:09:57 *** new_to_gnucash has joined #gnucash
22:11:08 <new_to_gnucash> Hello, I am new to using this program. I want to know how to track shipping costs.
22:12:32 <new_to_gnucash> I am currently on version 2.6.19
22:21:58 *** new_to_gnucash has quit IRC
22:22:25 *** new_to_gnucash has joined #gnucash
22:32:54 *** storyjesse has joined #gnucash
23:11:10 *** ArtGravity has quit IRC