2017-04-16 GnuCash IRC logs

00:15:07 *** CharlesIC has joined #gnucash
00:15:10 <CharlesIC> hi
00:15:23 <CharlesIC> any way to easily add another entry to a posted invoice?
00:15:26 <CharlesIC> like if a new charge happens?
00:15:30 <CharlesIC> without unposting?
00:24:44 *** CharlesIC has quit IRC
00:35:30 *** nitin has joined #gnucash
00:57:20 *** nitin has quit IRC
01:33:54 *** fell has joined #gnucash
01:36:27 *** fell__ has quit IRC
02:24:14 *** mrklintscher2 has quit IRC
02:28:57 *** mrklintscher has joined #gnucash
02:38:11 *** meb has quit IRC
02:41:15 *** nitin has joined #gnucash
03:14:14 *** nitin has quit IRC
03:17:52 *** nitin has joined #gnucash
03:33:42 *** gncbot sets mode: +o fell
03:39:08 <fell> @tell CharlesIC You should stay longer than 9 minutes special on an early Sonday morning. THere is no easier way. Think of an invoice as a statement you send to your client
03:39:08 <gncbot> fell: The operation succeeded.
03:44:33 <fell> @tell gr8kodr Something like in http://code.gnucash.org/docs/C/?
03:44:33 <gncbot> fell: The operation succeeded.
03:49:14 <nitin> Please consider https://github.com/Gnucash/gnucash/pull/141, its a small fix for a typo I guess
03:55:40 *** mlncn has joined #gnucash
04:38:51 *** fabior has joined #gnucash
05:03:19 *** fabior has quit IRC
05:09:43 *** Dezgo has joined #gnucash
05:11:14 <Dezgo> Thanks gjanssens. I'll give the linux vm gnucash and python a go, that sound promising. I've done some basic python stuff so hopefully I can work it out! Might also check out the gnucash-user mailing list as you suggest.
05:11:24 *** Dezgo has left #gnucash
05:15:45 *** mlncn has quit IRC
05:26:33 <nitin> 5000.0 / nav <- I am trying to use this formula, but it gives me error "An error occurred while processing 5000.0 / nav." I think the expression parsing code is treating this as a fraction.
05:26:52 <nitin> Am I doing it correctly?
05:33:52 *** chf1 has joined #gnucash
05:33:52 *** chf has quit IRC
05:39:53 *** chf1 has quit IRC
05:41:14 *** chf has joined #gnucash
06:25:27 *** nitin has quit IRC
06:26:13 *** To7 has quit IRC
07:20:48 *** Mechtilde has joined #gnucash
07:35:49 *** Mechtilde has quit IRC
07:37:18 *** Mechtilde has joined #gnucash
07:45:19 *** Mechtilde has quit IRC
07:46:01 *** nitin has joined #gnucash
07:52:07 *** Mechtilde has joined #gnucash
07:54:09 *** rickoehn has joined #gnucash
08:16:31 *** nitin has quit IRC
08:16:41 *** nitin has joined #gnucash
08:32:53 *** O01eg has joined #gnucash
08:33:56 *** nitin has quit IRC
08:41:04 *** codesmythe has quit IRC
08:48:58 *** Mechtilde has quit IRC
08:53:57 *** codesmythe has joined #gnucash
09:00:27 *** User_ has joined #gnucash
09:33:33 *** ThomasKeller has joined #gnucash
09:57:42 *** storyjesse has joined #gnucash
10:08:34 *** nitin has joined #gnucash
10:19:34 *** fabior has joined #gnucash
10:19:42 *** To7 has joined #gnucash
10:39:21 *** User__ has joined #gnucash
10:46:07 *** storyjesse has quit IRC
10:48:50 *** mlncn has joined #gnucash
11:00:40 *** User_ has quit IRC
11:02:42 *** User__ has quit IRC
11:03:03 <nitin> Ok so I was debugging the case where you have an expression like this 5000 / nav <- In this case we try to divide 5000 by 0 by passing it to gnc_numeric_div. Am currently debugging further, if anyone has pointers please let me know :)
11:13:51 *** User__ has joined #gnucash
11:39:56 *** fabior has quit IRC
11:59:43 *** nitin has quit IRC
12:03:34 <jralls> nitin: Are you trying to use 'nav' as a variable for delayed processing?
13:11:14 *** User__ has quit IRC
13:12:12 *** User_ has joined #gnucash
13:32:45 *** chf has quit IRC
13:33:02 *** chf has joined #gnucash
13:35:44 *** rickoehn has quit IRC
13:41:19 *** nitin has joined #gnucash
13:42:38 <nitin> jralls: Yes
13:50:57 <jralls> nitin: At what point are you getting the crash?
13:51:03 *** chf has quit IRC
13:51:07 <nitin> The problem seems to be that while saving the scheduled transactions if we have a variable in denominator, its value will be evaluated as 0 during parsing of the expression. This causes divide by zero error.
13:51:29 <nitin> jralls: Its not a crash, it just says that unable to process expression
13:52:23 *** chf has joined #gnucash
13:54:08 <nitin> However, you can save and go ahead and even run the scheduled expressions by providing a non zero value to the variable.
13:57:11 <jralls> Is it popping a dialog box about being unable to process the expression or just writing a warning to the log?
13:58:26 <nitin> jralls: Popping a dialog box
14:09:19 *** frakturfreak has joined #gnucash
14:13:03 <jralls> nitin: Is the dialog error something like Split with memo foo has an unparseable Credit/Debit Formula?
14:29:55 <nitin> jralls: "An error occurred while processing 5000.0 / nav."
14:31:24 *** frakturfreak has quit IRC
14:31:51 <jralls> nitin: As an aside it would be better for you to enter the number of shares directly instead of dividing the contribution by the NAV, there's less chance of rounding issues that way.
14:33:39 <jralls> nitin: Another aside: You seem to be using master, and while it's great to have you testing it you shouldn't be using it for your actual books, only for a copy.
14:39:25 <nitin> jralls: Thanks, doing the same thing. Using a test book
14:40:50 <jralls> nitin: Anyway, back to the bug. Try setting a breakpoint on gnc_exp_parser_parse_separate_vars and stepping through that function looking for where the div-by-zero error happens. I think it will probably be in line 521.
14:41:43 <nitin> Found interesting stuff. If I create a transaction in my mutual fund and add just the buy entry there as lets say 5000; and then if I right click and schedule that transaction, then I get the exact behaviour that I want. Investing 5000 and being asked how much is the price of transaction.
14:46:27 <nitin> jralls: Let me check that out
14:54:26 <nitin> jralls: Yes its value is num: -2 denom: 0, which is an error code
14:56:26 <nitin> Will switch laptop
14:56:34 *** nitin has quit IRC
15:01:59 *** AndroUser has joined #gnucash
15:03:10 *** AndroUser is now known as nitin-mobile
15:07:36 <jralls> nitin-mobile: OK, that's ancient code and I'm not sure we're using it the way jsled intended.
15:08:18 <nitin-mobile> You mean the expressions code?
15:08:44 <jralls> Yeah.
15:12:46 <nitin-mobile> Ok. Its not a major issue actually but will try doing some binary search to see when it was working.
15:24:55 *** User__ has joined #gnucash
15:26:26 *** User_ has quit IRC
15:32:17 <jralls> nitin-mobile: If you doing a bisect I wouldn't. It may never have worked, but the dialogs won't have been displayed before 2e8407ed.
15:32:52 <jralls> nitin-mobile: s/you doing/you mean doing/
15:34:08 <nitin-mobile> Ok thanks
15:38:27 *** frakturfreak has joined #gnucash
15:41:48 <jralls> @tell gjanssens I finally got webkit to rebuild and I've reverted the kluge. Delete the webkit directory to install the new libs, and note that opensp also has a dependency on pthreads so one may need to force a rebuild on that too.
15:41:48 <gncbot> jralls: The operation succeeded.
16:34:54 *** mlncn has quit IRC
18:50:57 <CDB-Away_> Hmm, if I need to adjust the cost basis in my advanced portfolio to reflect a return of capital, what's the best way to do it
18:51:12 <CDB-Away_> I get the feeling the current report has no such capability
18:52:02 <CDB-Away_> Entered a credit to the stock account without specifying number of shares or share price, doesn't get reflected in the cost basis column of the report
18:53:01 *** fekepp has quit IRC
18:57:24 <jralls> CDB-Away: Mike Alexander, the author of the APR, just checked that for another user and said that it does work. https://bugzilla.gnome.org/show_bug.cgi?id=780846
19:21:08 <CDB-Away_> jralls: my example is exactly as in that ticket and no adjustment occurs
19:22:13 <jralls> OK. Could you comment on the bug, maybe with an illustrative sketch of the transaction?
19:22:59 <jralls> If Mike can make it work then he's probably making an assumption about how to enter it that's obvious to him but no-one else.
19:23:11 <CDB-Away_> I was looking through the scheme and trying to decipher the b-list basis building function
19:23:24 <CDB-Away_> I'll see what I can divine first before commenting
19:26:36 <CDB-Away_> As to the other issue in the ticket I don't know, but Rounding of shares is common practice on Canadian ETF when they consolidate notional distributions
19:47:18 *** To7 has quit IRC
19:50:00 <CDB-Man> okay, I've got nothing
20:02:44 *** crow_t has joined #gnucash
20:04:15 <crow_t> Hey all, I've looked online but haven't found a decent doc on setting up for school loans in gnucash- anyone know of a good resource?
20:11:19 <jralls> crow_t: Have you read http://www.gnucash.org/docs/v2.6/C/gnucash-guide/chapter_loans.html?
20:12:36 <crow_t> yeah, I am at the reddit page now and it looks like perhaps student loans are calculated a bit differently then other types
20:13:40 <crow_t> I think I may just treat them as a regular scheduled payment type for now
20:15:39 <jralls> crow_t OK. The loan calculator has to be pretty generic.
20:19:11 <crow_t> I'm pretty new at this anyways, maybe I'll figure it out when I understand the concepts and software better- thanks :)
20:19:22 *** crow_t has left #gnucash
20:22:27 *** chf has quit IRC
20:26:22 <CDB-Man> jralls: I left a reply
20:26:33 <jralls> Thanks.
20:26:39 *** mlncn has joined #gnucash
20:28:43 <CDB-Man> also, if I have a proposed feature to add to the adv portfolio report, what's the best way to go about that?
20:29:18 <CDB-Man> I have a CDB version of the adv portfolio report, with the few edits to the Scheme that I've added
20:29:48 <CDB-Man> each time I update the software I roll-forward my changes onto the most recent adv port report
20:31:20 <CDB-Man> tangential question; for that ticket I submitted a while ago re the cost amounts in the trial balance report, or more generally for any tickets, how can I know what version release the ticket has been implemented towards?
20:59:44 *** User__ has quit IRC
21:14:31 *** chf has joined #gnucash
21:21:34 *** chf has quit IRC
21:27:48 *** chf has joined #gnucash
21:32:38 *** mlncn has quit IRC
21:41:28 *** To7 has joined #gnucash
21:58:56 *** frakturfreak has quit IRC
22:20:04 *** chf1 has joined #gnucash
22:20:45 *** chf has quit IRC
22:26:08 *** chf1 has quit IRC
22:38:48 *** chf has joined #gnucash