2010-03-13 GnuCash IRC logs

01:00:47 *** Linuturk has quit IRC
01:13:52 *** Linuturk has joined #gnucash
01:54:12 *** jean has joined #gnucash
02:01:37 *** jpetersen has joined #gnucash
02:07:50 *** Zoolooc has joined #gnucash
02:10:50 *** andyt has joined #gnucash
03:32:15 *** jpetersen has quit IRC
04:08:31 *** ErKa has joined #gnucash
05:14:12 *** ErKa has quit IRC
06:35:50 *** cort has joined #gnucash
07:01:13 *** bentob0x has joined #gnucash
07:26:27 *** bentob0x has quit IRC
07:36:41 *** daedeloth has joined #gnucash
08:05:27 *** ErKa has joined #gnucash
08:19:40 *** ErKa has quit IRC
09:11:26 *** Jimraehl has left #gnucash
09:41:10 *** bentob0x has joined #gnucash
10:30:41 *** Jimraehl has joined #gnucash
11:46:55 *** fDavid has joined #gnucash
12:00:42 *** cfp has joined #gnucash
12:01:40 <cfp> any idea what gncInvoiceSetToChargeAmount does? i'm creating new invoices programmatically and that's the only non-obvious set function
12:17:08 *** fDavid has quit IRC
13:19:03 *** cort has quit IRC
13:57:02 *** Mer|in has quit IRC
14:02:19 *** Mer|in has joined #GnuCash
14:10:21 *** bentob0x has quit IRC
14:17:15 *** roe_ has quit IRC
15:01:09 *** andyt has quit IRC
15:42:27 *** cortana has joined #gnucash
16:44:39 *** ChoHag has joined #GnuCash
16:46:07 <ChoHag> I have many bills owed to a vendor and am not yet paying any before a certain date (yet). How can I pay off only the most recent 4 bills in just one transaction?
16:46:21 <ChoHag> I remember seeing something about this on a faq or list but I can't find it.
17:02:54 *** jean has quit IRC
17:36:01 *** daedeloth has quit IRC
17:37:49 *** ErKa has joined #gnucash
17:52:23 *** warlord-afk is now known as warlord
17:52:44 <warlord> ChoHag: you cannot pay the most recent 4 in 1 tnx. GnuCash uses FIFO, so it would pay the oldest first.
18:13:52 <warlord> cfp: the ToChargeAmount is used for Exp Vouchers to track additional "to_card" payments..
18:14:14 <warlord> If you're creating an invoice you need to create GncEntry items and add them to the invoice, and then post it.
19:04:24 *** Zoolooc has quit IRC
19:05:00 *** ErKa has quit IRC
19:43:17 *** fDavid has joined #gnucash
19:52:47 <cfp> not sure i understand what an "exp voucher" is, but it sounds like i don't need to worry about it in any case.
19:53:27 <cfp> btw: very minor point you have a function called gnc_account_lookup_by_name and another called gncTaxTableLookupByName
19:54:02 <cfp> maybe either both or neither should be camel case. probably not worth the hassle of the change i guess
19:59:21 <warlord> cfp: different sections of the code use different capitalization systems. historically the engine code used fooTypeStudlyCaps, and GUI code used foo_type_function_name
20:00:07 <cfp> haha ok. i know these things are hard to change once they're done.
20:00:13 <warlord> the engine code has only recently been changed as it's migrated over to GObject, however there will be issues because we certainly have cases of gncXxxYyyZzz and gnc_xxx_yyy_zzz
20:00:28 <warlord> Also note this code was written around 2001-2
20:01:59 <cfp> yeah ok. the complete rewrite of the ui code someone proposed on the mailing list looks more and more sensible the better i get to know gnucash... though i guess if i was doing it i'd probably do it in (wonderful) c#
20:05:12 <warlord> ewwwww
20:05:29 <cfp> haha. each to their own.
20:06:19 <cfp> i'm not exactly a fan of the whole gnome "object orientated c" approach.
20:06:56 <warlord> i'm not a fan of gnome's "let's break everything up into its own library and ship it separately" approach.
20:07:57 <warlord> the object-oriented c is pretty cool, IMHO...
20:08:16 <warlord> and made lots of sense 10+ years ago when C++ wasn't stable
20:08:42 <cfp> sure. i guess it's easy to forget how far c++ has come.
20:09:06 <cfp> i do a lot of coding in c++0x with ICC these days, and it's almost as nice to code in as c#
20:09:55 <warlord> c# is where c++ was 10+ years ago
20:11:22 <cfp> the big changes between versions? they're normally backwards compatible though.
20:13:53 <cfp> i confess i don't know the latest versions of c# that well, the SQL-esque language extensions etc.
20:14:20 <warlord> honestly i've never used it... too MS-centric.
20:14:25 <cfp> but generics, lambda expressions, the core .net framework, they're all stable and incredibly useful
20:15:01 <warlord> ... if you're on Windows
20:15:02 <cfp> well mono stays up to date with ms. i think ms have even been helping them to some extent
20:15:46 <cfp> yeah i am. java has most of the same features as c# these days, though it's still not quite as elegant and they lagged behind a bit on a few features
20:16:35 <cfp> though i do all my gnucash dev in a virtual machine as i despaired at ever getting it to build on windows in a reasonable amount of time
20:34:11 <cfp> anyway, getting back on topic: i'm getting a load of "Transaction doesn't have a currency!" errors running my plugin. it's creating invoices, posting them and paying them.
20:34:28 <cfp> the invoices are created with gncInvoiceSetCurrency ( lpInvoice, gnc_default_currency( ) );
20:34:37 <cfp> so they have a currency
20:35:33 <cfp> and i'm posting with gncOwnerApplyPayment( .... , gnc_numeric_create( 1, 1 ), ... ) (for the exchange rate).
20:36:23 <cfp> have i fundamentally misunderstood the "exch" argument of gncOwnerApplyPayment
20:38:55 <warlord> by default exch should be (1,)
20:38:58 <warlord> er, (1,1)
20:39:08 <warlord> Are you sure gnc_default_currency() is returning non_NULL?
20:40:14 <warlord> Are you making sure that the Invoice Currency == the Owner Currency == The A/R currency, ... ?
20:43:30 <warlord> cfp: Are you sure that the Invoice Owner has a currency configured?
20:44:19 <warlord> strangely, it looks like the invoice currency is completely ignored!
20:44:38 <warlord> gncOwnerApplyPayment uses the owner currency!
20:45:22 <warlord> posting the invoice uses the invoice currency... but payments use the owner currency..
20:46:35 <cfp> hmm. just a sec i'll add some reporting code to see what's going on.
20:47:16 <cfp> everything i do is in the same currency for the record
20:49:18 *** cortana has quit IRC
20:49:47 <warlord> clearly something is NULL.
20:51:14 <cfp> well it's not the default currency. maybe the entry needs a currency.
20:51:34 <cfp> nope doesn't appear to
20:52:40 <warlord> gdb. break in the payment function. see what it's doing?
21:19:41 <cfp> you were right. i wasn't setting the currency on the new customers i was creating.
21:20:35 <cfp> now seems to be running, albeit incredibly slowly.
21:21:05 <warlord> glad its working now
21:21:23 <cfp> thanks a lot for your help
21:22:55 <warlord> welcome
21:23:30 <cfp> is there any way of increasing the amount of "batching" of transactions that takes place? i'm surrounding blocks of transactions by gnc...(Begin/End)Edit but do they actually work in a recursive fashion, since each gncSet... call seems to call both of them
21:25:47 <warlord> they are recursive within a txn. You can also turn off the gui_refresh
21:26:17 <cfp> k i'll try that. thanks
21:46:36 *** fDavid has quit IRC
22:55:25 <warlord> good night
22:55:28 *** warlord is now known as warlord-afk
23:36:59 *** cfp has quit IRC