2013-03-22 GnuCash IRC logs

00:01:28 *** ErKa has quit IRC
00:08:08 *** arrainey has quit IRC
00:08:40 *** arrainey has joined #gnucash
00:13:44 *** arrainey has quit IRC
00:14:18 *** arrainey has joined #gnucash
00:17:39 *** rpg has quit IRC
00:22:16 *** nodje has joined #gnucash
00:29:53 *** arrainey has quit IRC
00:30:26 *** arrainey has joined #gnucash
00:35:30 *** arrainey has quit IRC
00:36:03 *** arrainey has joined #gnucash
00:38:54 *** arrainey has quit IRC
01:58:42 *** fell has joined #gnucash
01:58:43 *** gncbot sets mode: +o fell
02:13:51 *** ecocode has joined #gnucash
02:21:58 *** ecocode has left #gnucash
03:13:18 *** ecocode has joined #gnucash
03:20:44 *** ecocode has left #gnucash
04:14:34 *** Krzysiek_K has quit IRC
04:41:14 *** Topcat has joined #gnucash
04:52:36 *** uXus has joined #gnucash
04:54:05 *** aqua___ has joined #gnucash
06:24:22 *** Topcat has quit IRC
06:24:44 *** Topcat has joined #gnucash
06:30:25 *** Jimraehl has left #gnucash
06:57:44 *** nodje has quit IRC
07:02:22 *** Jimraehl has joined #gnucash
07:15:29 *** Topcat has quit IRC
07:16:05 *** Topcat has joined #gnucash
07:41:44 *** Topcat has quit IRC
07:42:06 *** Topcat has joined #gnucash
07:57:24 *** aqua_ has joined #gnucash
08:01:38 *** calbasi has joined #gnucash
08:02:35 *** aqua___ has quit IRC
08:12:55 *** aqua_ has quit IRC
09:55:29 *** rpg has joined #gnucash
10:22:01 *** calbasi has left #gnucash
10:41:48 *** joslwah has joined #gnucash
10:42:35 <joslwah> Are there any examples of getting the root account from the guile side of things? I'm looking for a way of getting the account root without starting from an account.
10:42:53 *** fabior has joined #gnucash
10:49:36 *** fabior has quit IRC
10:49:55 <warlord> joslwah: gnc_book_get_root_account
10:51:07 <joslwah> And how do I get the book? (This is from guile). Can I use gnc_get_current_book?
10:51:15 <joslwah> And would that turn into gnc:get-current-book?
10:51:40 <joslwah> and would gnc_book_get_root_account turn into gnc:book-get-root-account?
10:51:51 <joslwah> And thanks warlord.
10:52:26 <warlord> joslwah: yes, maybe, maybe
10:53:14 <joslwah> O.k. So my issue is, given a C function, how do I establish whether it is usable from guile and then how do I work out the name?
10:53:59 <warlord> The answer is generally yes, it is, and it's generally the same name./
10:54:55 <joslwah> But with _'s turned into -'s?
10:54:59 <warlord> it's gnc-get-current-book, and
10:55:04 <warlord> yes.
10:55:42 <joslwah> Great. How did you confirm it? Not doubting you, just wanting to know the method so that I can follow the same logic rather than bugging you next time. 8-)
10:58:11 <warlord> 'find . -name \*.scm | xargs grep ....'
10:58:26 <joslwah> 8-)
10:58:31 <joslwah> O.k. So someone else has used it.
10:58:38 <joslwah> Fine.
10:58:54 <joslwah> Something similar was how I found the C version in the first place.
10:59:57 <warlord> :)
11:00:06 <warlord> what report are you writing/modifying?
11:00:09 <joslwah> Are they autogenerated during the compiling of gnucash? I didn't seem to find a stub when I searched a copy of the git download I'd looked for.
11:00:28 <warlord> Yes, the wrappers are auto-generated by swig.
11:00:54 <joslwah> Roughly speaking, I'm writing a report that will read in some csv files, and then check which accounts and transactions exist and then create accounts, add transactions and occasionally delete transactions.
11:02:13 <joslwah> I have an external account that is generating huge numbers of transactions, and quite a few accounts. Some of the transactions are tentative, and many are future dated but useful to have for planning purposes.
11:02:38 <joslwah> Oh, and they really don't like giving some of the transactions. It is all or nothing.
11:03:37 <joslwah> I'd prefer to keep everything in gnucash rather than creating a separate database to filter everything through. And I don't think you can get imports to automagically delete transactions. Hence writing the report to control everything.
11:04:03 <joslwah> I've basically got the guile parsing of the reports I have done. Now I just need to get the gnucash interface.
11:05:10 <joslwah> Once I've done that then I'll use the framework for a friend who is doing a different sort of project but would benefit from being able to do similar manipulations. I'm sort of generating a middle "interface" that hopefully my code will interpret and merge accurately with the gnucash state.
11:05:52 <joslwah> Is that just clear as mud?
11:06:08 <joslwah> Perhaps the correct thing to do would be to learn python, but I'd prefer not to.
11:06:12 <joslwah> So I'm doing it this way.
11:06:31 <joslwah> Learning guile was easy. And it isn't too bad to program in.
11:13:09 <warlord> :)
11:13:55 <joslwah> I'm just trying to get the API down now.
11:14:16 <joslwah> It is going to be one ugly report, but it won't display much.
11:14:49 <warlord> LOl
11:15:28 <joslwah> Perchance, does the root account have full name ""?
11:15:30 *** nomeata has joined #gnucash
11:17:31 <joslwah> Got it! 8-) Right. I think I can now find accounts and whether or not they exist.
11:18:00 <joslwah> Good progress, especially since I think it might help me work out how to work out how to do the rest. Thanks very much.
11:20:14 *** tizza10 has joined #gnucash
11:20:17 <warlord> You are welcome.
11:20:25 <warlord> Do you plan to donate your code once you're done?
11:20:25 <warlord> ;)
11:21:43 <joslwah> I'd be happy to do so. I'll have to tidy up a chunk of it but can then describe the interface and contribute that side of things.
11:22:01 <joslwah> The other side would be much more situation specific.
11:22:34 <joslwah> However, you may well have to bug me and remind me. I've got a lot on my plate at the moment and by the time it is off my plate I may well forget.
11:23:57 <warlord> I'll do my best
11:38:15 *** StuM has quit IRC
11:39:14 *** StuM has joined #gnucash
11:50:55 *** joslwah has quit IRC
12:04:31 *** Topcat has quit IRC
12:04:54 *** Topcat has joined #gnucash
12:05:07 *** shanny has joined #gnucash
12:37:56 *** ErKa has joined #gnucash
12:41:51 *** tizza10 has quit IRC
12:42:23 *** tizza10 has joined #gnucash
12:53:11 *** aqua___ has joined #gnucash
13:26:35 *** aqua___ has quit IRC
13:43:32 *** nomeata has quit IRC
13:44:46 *** fabior has joined #gnucash
14:15:13 *** benoitg has joined #gnucash
14:15:38 *** jmd has joined #gnucash
14:44:46 *** aqua___ has joined #gnucash
14:44:57 *** benoitg has quit IRC
14:45:09 *** tizza10 has quit IRC
14:45:54 *** tizza10 has joined #gnucash
14:47:05 *** Topcat has quit IRC
14:47:54 *** Krzysiek_K has joined #gnucash
14:49:55 *** tizza10 has quit IRC
14:50:42 *** tizza10 has joined #gnucash
14:53:24 *** fabior has quit IRC
15:17:19 *** nomeata has joined #gnucash
15:21:03 *** tizza10 has quit IRC
15:22:09 *** tizza10 has joined #gnucash
15:33:01 *** tizza10 has quit IRC
15:51:18 *** arrainey has joined #gnucash
16:01:48 *** arrainey has quit IRC
16:02:20 *** arrainey has joined #gnucash
16:12:41 *** arrainey has quit IRC
16:14:33 *** ecocode has joined #gnucash
16:24:18 *** nomeata has quit IRC
16:46:50 *** aqua___ has quit IRC
17:18:03 *** linas__ has joined #gnucash
17:18:03 *** linas_ has quit IRC
17:31:45 *** ErKa has quit IRC
18:28:37 *** donfede has quit IRC
19:02:05 *** fell_ has joined #gnucash
19:02:07 *** gncbot sets mode: +o fell_
19:03:52 *** ErKa has joined #gnucash
19:07:16 *** fell has quit IRC
19:17:03 *** ErKa has quit IRC
19:19:59 *** ecocode has quit IRC
19:31:59 *** joslwah has joined #gnucash
19:36:18 *** nomeata has joined #gnucash
19:37:22 *** rpg has quit IRC
19:40:10 *** ErKa has joined #gnucash
19:53:09 *** nomeata has quit IRC
20:12:14 *** joslwah has quit IRC
20:15:01 *** fell_ has quit IRC
20:47:47 *** gncbot has joined #gnucash
20:48:55 *** T2 has joined #gnucash
20:49:28 <T2> How do I do Dividends in T2 and not have to use shareholder loan to balance the balance sheet
20:49:39 <T2> assets are lower then liabilities and shareholder equity
20:54:47 *** T2 has quit IRC
21:21:26 *** arrainey has joined #gnucash
21:34:56 *** kpreid has quit IRC
21:35:34 *** kpreid has joined #gnucash
21:42:08 *** arrainey has quit IRC
21:44:24 *** mossyfunk has joined #gnucash
21:52:50 <mossyfunk> Hi. I have a business which involves taking deposits on containers. I currently have setup an expense account for money I have invested out of my own pocket for the containers which is linked to an asset account so the asset account shows in the negative, I can then see this weighed against the asset account for income earned. I want to setup an account for deposit's held on containers but I'm not sure how to do this. I ha
21:52:51 <mossyfunk> ve tried creating an asset account with a starting balance that equals the price of containers so I could link transactions from that to a liability account so I know what's going on, but the balance of the asset account for the containers is shown as a positive in equity, which affects my system of weighing income against dept for my personal investment. I hope this makes sense. Just wondering if there is a better way to
21:52:51 <mossyfunk> do this with the deposits as it's inherantly confusing.
22:02:51 <mossyfunk> Should I just have the deposits as income and transfer from that account into a liability account?
22:19:48 <mossyfunk> Don't worry I sorted it. Just treating the deposits as income linked to a Liability account. Man I find this stuff confusing haha
22:19:54 *** mossyfunk has quit IRC