2014-01-31 GnuCash IRC logs
01:14:53 *** ErKa has quit IRC
01:27:30 *** MechtiIde has joined #gnucash
01:42:38 *** fell_ has joined #gnucash
01:42:39 *** gncbot sets mode: +o fell_
01:51:48 *** fell has quit IRC
01:54:21 *** fell_ is now known as fell
01:54:35 <fell> Moin!
02:00:49 <MechtiIde> Guten Morgen
02:01:05 <fell> Ich leider eingeschlafen.
02:01:29 <fell> war^
02:03:05 <fell> Was du noch hättest besser machen können: erst den Bugbericht erstellen und den Link gleich in der Mail veröffentlichen.
02:03:25 <fell> Aber schön, daß es jetzt wieder klappt.
02:08:16 *** MechtiIde has quit IRC
02:17:33 *** fell_ has joined #gnucash
02:17:33 *** gncbot sets mode: +o fell_
02:26:01 *** fell has quit IRC
03:07:11 *** gjanssens has joined #gnucash
03:07:11 *** gncbot sets mode: +o gjanssens
03:11:37 *** MechtiIde has joined #gnucash
04:09:09 *** jralls has quit IRC
04:27:17 *** MechtiIde has quit IRC
06:17:50 *** aqua___ has joined #gnucash
06:33:33 *** aqua_ has joined #gnucash
06:38:52 *** aqua_ has quit IRC
06:39:36 *** aqua___ has quit IRC
06:40:13 *** aqua___ has joined #gnucash
07:07:37 *** Jimraehl1 has joined #gnucash
07:24:27 *** aqua___ has quit IRC
09:12:27 *** MechtiIde has joined #gnucash
09:36:42 *** MechtiIde has quit IRC
09:45:14 *** lmat has joined #gnucash
09:45:35 <lmat> warlord: Had a fun time last night cruising around the code :)
09:46:36 <lmat> warlord: I'm having a bit of a difficult time making my way around, though. It's very straightforward to find things (usually) in Java projects (to which I'm accustomed), but these global methods across some 1000 code files is a bit hairy.
09:47:33 <lmat> For instance, I spent a while looking for xaccAccountGetName. I eventually found it, but it was difficult.
09:48:02 <lmat> Now I'm trying to figure out what GET_PRIVATE does...it's defined to call G_TYPE_INSTANCE_GET_PRIVATE, but I can't find that (#define 's) definition.
09:48:15 <lmat> warlord: In short, what do you use to browse the code ? I'm currently using vim and bash.
09:52:26 <lmat> grep 'define.*G_TYPE_INSTANCE_GET_PRIVATE' **; only returns two values, but both of them are incorrect :(
09:58:46 *** haclong has joined #gnucash
10:09:51 *** ErKa has joined #gnucash
10:36:50 *** jonkri has joined #gnucash
10:36:51 <jonkri> I'm trying to post an invoice to a company configured for Canadian dollars. I'm using a Canadian dollar expense account. Still, I'm getting a message saying "one or more entries are in different currency". What could this mean?
10:37:30 <jonkri> "One or more of the entries are for accounts different from the invoice/bill currency. You will be asked a conversion rate for each."
10:39:30 <jonkri> Oh, I think it had to do with the tax account. Thanks.
10:42:11 <lmat> jonkri: Any time!
10:46:40 <warlord> lmat: that's a GLIb macro. It's used to get a private member from a gobject
10:47:30 <warlord> lmat: IMHO "find | grep" works well. or you can set up etags.
10:47:55 <lmat> warlord: find|grep!? no way ^_^
10:51:14 <lmat> warlord: Stick with either find or grep :)
10:55:16 <warlord> ??
10:55:46 <warlord> I suppose you could use grep -r
10:56:05 <warlord> but I like find | grep because I can search only headers or only c files or...
10:56:14 <warlord> ... and skip .o files, Makefiles, etc.
10:56:22 <warlord> It makes the search results more.... accurate
10:57:11 <jonkri> Okay, here's another question, that I can't think I can figure out myself. :P
10:57:12 <jonkri> Post to Payable account. Now the Expense account and Payable shows the amount. When I click to enter a payment for the invoice, and specify the payment amount and account, the Transfer Funds "To Amount" field is negative. If I change it to positive, I get an exchange rate like 1 CAD = -6.38 SEK. What am I doing wrong here?
10:57:47 <jonkri> s/Post to Payable account./I click Post to Payable account for my invoice in a foreign currency.
10:58:18 <jonkri> Actually, s/invoice/bill (sorry).
10:59:26 <warlord> Where is the negative amount coming from?
10:59:36 <warlord> (Can you show a screen shot? Use something like imagebin)
10:59:55 <gjanssens> lmat: I have set up Eclipse to work on gnucash
11:00:13 <lmat> gjanssens: Oh, I didn't know Eclipse does C code...
11:00:20 <gjanssens> It has good search capabilities
11:00:30 <lmat> warlord: only header files grep pattern **/*.h
11:00:34 <gjanssens> There is a CDT plugin for C code
11:01:05 <lmat> gjanssens: Can you run a test for me in that IDE ?
11:01:12 <gjanssens> And it finds function and macro definitions for you, even in header files
11:01:50 <gjanssens> lmat: what test ?
11:02:02 <lmat> On src/engine/Account.c , line 90, there is a type G_TYPE_INSTANCE_GET_PRIVATE...hold CTRL and click that text :)
11:02:49 <lmat> warlord: The only difficulty is when you want to search for a file name *without* case sensitivity, and grep it: find -iname '*pattern*' -exec grep pattern {} +;
11:03:05 <lmat> gjanssens: Does it find the difinition of that macro ?
11:03:10 <lmat> gjanssens: If so, I'll give it a try ^_^
11:03:24 <gjanssens> lmat: yes, it opens the file gtype.h
11:03:28 <warlord> lmat: in my case I never need to do that, but when I do I just type the regex (although it's annoying)
11:03:34 <lmat> gjanssens: awesome.
11:03:50 <lmat> warlord: "I just type the regex" ? Where ?
11:04:11 <warlord> lmat: into the command
11:04:32 <lmat> warlord: sorry, not following. If you need to find a file name (case insensitive), then run grep on it, what do you do ?
11:05:07 <warlord> depends on the name of the file
11:05:21 <warlord> (e.g., depends on the type of regex I need)
11:05:22 <lmat> warlord: Oh, I'm assuming that I don't know the name of the file (hence the 'find') ^_^
11:05:28 <warlord> but I've never had to do that.
11:05:39 <lmat> warlord: I'm doing it constantly ^_^ (not knowing my way around the code base at all)
11:05:43 <warlord> lmat: I usually do : find . -name \*.h | xargs grep ...
11:06:12 <lmat> warlord: If you're going to do that, at least do find . -name \*.h -print0 | xargs -0 grep ...
11:06:26 <warlord> lmat: Or more generally: find . -name \*.\[ch\] | .... if I want to find .h files and .c files
11:06:36 <warlord> No need in gnucash sources
11:06:53 <warlord> We dont have sources with spaces
11:07:11 <lmat> warlord: eek
11:07:12 <warlord> (I would agree with you in general)
11:07:24 <gjanssens> warlord: I got confused by linas' short appearance on ric yesterday evening
11:07:25 <jonkri> warlord: Here are the screenshots: <http://www.jonkri.com/temp/1.png>, <http://www.jonkri.com/temp/2.png>, <http://www.jonkri.com/temp/3.png>. Thanks. :)
11:07:35 <warlord> gjanssens: I have his pubkey
11:07:42 <gjanssens> Ah, good
11:07:44 <jonkri> The N account takes the SEK currency.
11:08:41 <jonkri> I've messed something up somewhere here. I've done this procedure before with other foreign vendors and bills without a problem, but I can't figure out just what is wrong. :S
11:08:51 <lmat> gjanssens: What was confusing about it ?
11:09:13 <gjanssens> Well that combined with a private mail
11:09:28 <gjanssens> I didn't get whether or not the ssh keys were actually generated or not
11:09:30 <warlord> jonkri: first, which version of gnucash is this?
11:09:37 <jonkri> warlord: 2.6.0
11:09:48 <warlord> hmm.. gjanssens can you look at his screen shots?
11:10:13 * gjanssens was already looking
11:10:19 <jonkri> Thanks. :)
11:10:26 <gjanssens> jonkri: that's probably a bug
11:10:37 <warlord> jonkri: I think the negative is there because of the "direction". Arguably it should probably use the absolute value instead of the 'actual' value
11:10:48 <jonkri> Ah...
11:10:59 <warlord> Don't remove the negative
11:11:04 <gjanssens> Internally this payment is negative (balance wise)
11:11:20 <gjanssens> As warlord says, it should not have been displayed as such to the user
11:11:22 <jonkri> Is there a workaround that I can use just so that I can proceed with my accounting? :)
11:11:24 <warlord> it's just showing that it's outgoing vs. incoming.. But you are right that the UI probably should hide the negativeness from you
11:11:45 <gjanssens> Can you file a bug report for this please ?
11:11:46 <warlord> jonkri: just ignore the negative -- leave it in there and keep working as if it weren't there.
11:11:46 <jonkri> The problem is that when I post it as negative, it messes up my Payable or Expense account. Let me check.
11:13:02 <jonkri> Yeah, now subtracts 214 SEK instead of 39.99 CAD from the Payable account, resulting in an imbalance.
11:13:34 <jonkri> Perhaps I can correct the imbalance manually. The expense account is correct.
11:15:47 <warlord> jonkri: Which account is SEK and which is CAD?
11:15:51 <warlord> (I got confused)
11:16:16 <jonkri> N is SEK. The rest (the Expense and Payable accounts) are CAD.
11:18:03 <jonkri> The vendor is CAD too.
11:18:15 <gjanssens> jonkri: that sounds suspiciously like an abs call in the wrong spot
11:18:33 <warlord> So you are sending 255.18SEK to a canadian vendor?
11:18:59 <jonkri> I'm paying 39.99 (to be translated into a cost of 255.18SEK in N) to a Canadian vendor.
11:19:07 <jonkri> 39.99 C$
11:19:36 <jonkri> The thing that makes me suspect that this is my fault is that this has worked for some other currencies in the past.
11:19:39 <warlord> But where is the translation happening? Perhaps you would be best off with a CAD "transfer" account..
11:20:17 <jonkri> Usually, I let the translation happen automatically when I "pay" the bill.
11:23:58 <gjanssens> jonkri: what happens if you enter the payment the other way around ?
11:24:11 <jonkri> gjanssens: Which way is that? :)
11:24:19 <gjanssens> In the payment dialog enter 39.99
11:24:29 <jonkri> And select N?
11:24:45 <gjanssens> And in the transfer dialog convert that to 255.18
11:24:48 <gjanssens> Yes select N
11:25:03 <gjanssens> And ignore the currency names in the transfer dialog
11:25:22 <gjanssens> Just testing to see where exactly the error would be
11:25:54 <gjanssens> warlord: can you add the public key in the gitolite repository for user svn-mirror ?
11:26:31 <warlord> gjanssens: yeah, I was going to do that. Just busy with work.
11:26:36 <jonkri> gjanssens: Ah, okay. Now 39.99 SEK is withdrawn from the N account, and a 33.72 CAD imbalance.
11:27:00 <jonkri> (Which would probably would be 39.99 if the exchange rate was the same.)
11:27:00 <gjanssens> warlord: NP
11:27:35 <warlord> er, wait, I dont have a key..
11:27:42 <warlord> The email I have is the same you got.
11:27:55 <gjanssens> See it was confusing :)
11:28:28 <gjanssens> Let's just wait until linas read my mail reply
11:28:59 <gjanssens> jonkri: I'm a bit dense here I'm afraid
11:29:06 <gjanssens> What exactly should happen ?
11:29:26 <jonkri> Sorry for not being clear.
11:30:06 <jonkri> Before: N = X; Expenses (CAD): 0; Payables (CAD): 0
11:30:34 <jonkri> After: N = X - 255.18; Expenses (CAD): 39.99; Payables (CAD): 0
11:31:37 <gjanssens> That can't be right
11:32:00 <gjanssens> When you have a posted, unpaid bill, Payables (CAD) should have that amount open
11:32:14 <jonkri> Oh, yes.
11:32:18 <jonkri> There is an intermediate step (which works).
11:32:38 <gjanssens> Oh, you start from even before the bill gets posted
11:32:43 <gjanssens> Ok
11:33:08 <jonkri> Posting results in: N: X; Expenses (CAD): 39.99; Payables (CAD): 39.99
11:33:11 <jonkri> Which as far as I can tell is correct.
11:33:23 <jonkri> It's the "Enter payment" operation which fails.
11:33:52 <linas> ola
11:33:59 <gjanssens> I suppose what you get is:
11:34:01 <jonkri> I select N, specify 255.18, and specifies To Amount: -39.99.
11:34:36 <gjanssens> What end result do you get then ?
11:34:39 <jonkri> Which gives me: N = X - 255.18; Expenses (CAD): 39.99; Payables (CAD): -215.19
11:34:51 <jonkri> So everything is correct except Payables for some reason.
11:35:02 <jonkri> Oh, sorry.
11:35:12 <jonkri> There is a Imbalance-CAD: -215.19 as well.
11:35:22 *** fell__ has joined #gnucash
11:35:23 *** gncbot sets mode: +o fell__
11:36:08 *** fell_ has quit IRC
11:37:44 <gjanssens> Hmm, so the same 255.18 is substracted from N and from Payables (CAD)
11:38:06 <gjanssens> That would mean the conversion rate is not applied at all
11:38:32 <gjanssens> That would definitely be a bug
11:39:16 <gjanssens> Please file it http://wiki.gnucash.org/wiki/Bugzilla
11:40:02 <gjanssens> As a workaround you can perhaps create an intermediate account in CAD to apply the payment to
11:40:22 <gjanssens> and manually transfer the money from there to the N account
11:40:50 <gjanssens> Hi linas
11:42:24 <gjanssens> Do you need more info regarding how the ssh key will be used ?
11:44:12 <jonkri> gjanssens: This happens with my other currencies too. I guess it's because I've upgraded GnuCash.
11:44:44 <gjanssens> jonkri: I would indeed expect this to be across the board
11:44:56 <gjanssens> Sorry about that
11:45:47 <warlord> gjanssens: linas just responded
11:46:25 <lmat> Is linas's last name Torvalds ?
11:46:31 <gjanssens> linas: thanks
11:46:37 <warlord> lmat: no
11:46:39 <gjanssens> lmat: not this one no
11:46:43 <lmat> oh, okay, thansk!
11:46:44 <jonkri> Maybe I should try 2.4.15...
11:46:47 <warlord> (although I know that Linas, too)
11:46:55 <warlord> Actually, Torvals is Linus, not Linas
11:47:05 <lmat> That's right, thanks.
11:47:07 <warlord> Er, Torvalds
11:47:18 <warlord> Granted, I haven't seen Linus in over a decade.
11:47:30 <warlord> (seen IRL)
11:47:53 <gjanssens> jonkri: you will probably have better luck with that version. 2.6 got the whole payment system completely overhauled
11:48:06 <gjanssens> But please do file a bug report so it won't be forgotten
11:48:24 <jonkri> gjanssens: I feel that I wont be able to give good enough context for a bug report.
11:48:33 <jonkri> Should I just explain the steps?
11:48:46 <gjanssens> You can refer to this irc conversation
11:48:57 <gjanssens> Just writing the steps to reproduce is ok
11:49:13 <jonkri> And paste the conversation, right?
11:49:22 <gjanssens> Yep
11:49:51 <gjanssens> I will be the one to fix it anyway and I have the context now
11:50:36 <gjanssens> By the way, you can look at the irc conversation log on http://lists.gnucash.org/logs/2014/01/2014-01-31.html
11:50:41 <gjanssens> Every timestamp there is a link
11:50:45 <jonkri> Wait... Does GnuCash not compile with GTK3?
11:51:01 <gjanssens> You can copy the timestamp from the start of the conversation in the bug report
11:51:09 <gjanssens> No, we're still Gtk2
11:51:50 <gjanssens> warlord: I got the public key as well from linas. I will add it in gitolite
11:52:21 <warlord> gjanssens: yeah, I saw. Cool, thanks.
11:52:58 <warlord> jonkri: nope, it's Gtk2
11:53:26 <jonkri> How come? Is it tricky to port it?
11:54:57 <gjanssens> jonkri: not too tricky to port no
11:55:08 <gjanssens> But we support older systems as well
11:55:24 <jonkri> Aha, okay.
11:55:28 <gjanssens> Gtk3 is not available on all of them (or not long yet)
11:55:54 <gjanssens> Aaaand gtk3 is/was not well supported on Windows
11:56:22 <gjanssens> There seems to be some progress recently, but when we were working towards 2.6 it was a big issue
11:56:30 <gjanssens> It may be better by now
11:56:37 <gjanssens> I haven't checked recently anymore
11:56:50 <gjanssens> warlord: gitolite done
11:57:28 <gjanssens> I'm not sure when I will have the time to test a pull from www
11:57:32 <gjanssens> We'll see
11:58:03 <warlord> I think it's the windows (and mac) support holding us back right now.
11:58:20 <warlord> gjanssens: well, tomorrow I plan to do the migration
11:59:09 <gjanssens> jralls isn't around to ask the gtk3 status on mac
11:59:15 <gjanssens> He would know
11:59:19 <warlord> true
12:18:59 *** gncbot` has joined #gnucash
12:21:39 *** gncbot has quit IRC
12:21:53 *** gjanssens sets mode: +o gncbot`
12:22:04 *** gjanssens is now known as gncbot
12:22:12 *** gncbot is now known as gjanssens
12:22:32 <gjanssens> warlord what's the command to renick gncbot ?
12:22:45 <gjanssens> jonkri: you're welcome, thanks for the bug report
12:23:24 <jonkri> My pleasure. :)
12:23:40 <jonkri> Keep up the good work. ;)
12:25:03 *** haclong has quit IRC
12:26:37 <gjanssens> @nick gncbot
12:26:37 <gncbot`> gjanssens: Error: You don't have the admin capability. If you think that you should have this capability, be sure that you are identified before trying again. The 'whoami' command can tell you if you're identified.
12:27:33 <gjanssens> Oh well, I don't think I can change it
12:29:26 <jonkri> Can I use a file saved with GnuCash 2.6.0 in GnuCash 2.4?
12:32:56 <gjanssens> If you haven't created any credit notes, you should
12:34:10 <jonkri> gjanssens: I have only payed bills, and added a few vendors. Could that have created a credit note? :)
12:36:32 <gjanssens> No
12:36:32 <jonkri> Good, thanks. :)
12:36:32 <gjanssens> You would have to explicitly create one
12:41:13 *** jmd has joined #gnucash
12:43:33 *** jralls has joined #gnucash
12:43:33 *** gncbot` sets mode: +o jralls
12:45:15 <warlord> gjanssens: @nick
12:45:18 <warlord> @nick gncbot
12:45:19 *** gncbot` is now known as gncbot
12:45:40 <gjanssens> warlord: aparently I can't do that
12:45:52 <gjanssens> I'm not an admin, only an op
12:46:12 <warlord> Oh. Hmm. Ok.
12:53:37 *** ErKa has quit IRC
13:06:57 *** jonathan_ has joined #gnucash
13:10:30 *** jonkri has quit IRC
13:17:40 *** ErKa has joined #gnucash
13:22:00 *** jonathan_ has quit IRC
13:57:58 *** TradeBorG113 has joined #gnucash
14:27:17 *** jmd has quit IRC
15:46:36 *** TradeBorG113 has quit IRC
16:15:51 *** fell__ is now known as fell
17:10:26 <gjanssens> warlord: There's still an error when www tries to pull from code:
17:10:29 <gjanssens> remote: Host key verification failed.
17:10:37 <gjanssens> I suspect www is now in your blacklist
17:11:46 <gjanssens> I can't look into the svn-mirror .ssh directory, so I don't know why it didn't work
17:12:12 <gjanssens> My guess is we need to explicitly tell ssh which identity to use when it connects to code
17:12:19 <gjanssens> Anyway time fore bed
17:12:24 <gjanssens> This will be for later
17:13:49 *** gjanssens has quit IRC
17:27:34 *** lmat has quit IRC
17:45:42 *** himaxx has joined #gnucash
17:56:40 *** himaxx has quit IRC
18:15:52 *** aqua___ has joined #gnucash
18:29:09 *** haclong has joined #gnucash
18:35:20 *** aqua___ has quit IRC
18:35:54 *** haclong has quit IRC
19:22:25 <warlord> @tell gjanssens Nope, not blacklisted. I bet there's an issue writing to the known_hosts file.. What happens if you try to ssh to git@code from the svn-mirror user account? And no, there's no need to tell ssh what key to use; it will use the right thing. But we might need to set it up as the svn-mirror user, which might mean getting a shell or pair-programming with linas.
19:22:25 <gncbot> warlord: The operation succeeded.
19:38:32 *** ErKa has quit IRC
20:40:39 *** ErKa has joined #gnucash
21:28:57 *** ErKa has quit IRC
22:50:43 *** xordis has joined #gnucash
22:53:15 <xordis> New gnucash user here. I am trying to understand invoicing. I have setup a customer/invoice correctly. I then post the invoice (date in the past). Then processed the payment at the date they paid it. That is all good. However the record in my Income:Sales and Liabilities:Tax is of the post date, not the payment date. This messes up my profit and loss report
22:53:30 <xordis> as the post date was prior to the last financial year
22:54:06 <xordis> Is their a way to have the income/taxes recorded at the payment date instead of the post date?
23:01:05 *** yuriks has joined #gnucash
23:20:43 *** Jimraehl1 has quit IRC
23:53:18 *** xordis has quit IRC