gnucash maint: Bug 736703 - Scheduled transaction are registered without credit/debit

John Ralls jralls at code.gnucash.org
Thu Sep 25 20:00:13 EDT 2014


Updated	 via  https://github.com/Gnucash/gnucash/commit/32105585 (commit)
	from  https://github.com/Gnucash/gnucash/commit/e693a689 (commit)



commit 32105585d4c239953c04d2b013b8a9f1bddcaca8
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Sep 25 16:45:44 2014 -0700

    Bug 736703 - Scheduled transaction are registered without credit/debit
    
    Use a default exchange rate of 1 instead of 0.

diff --git a/src/app-utils/gnc-sx-instance-model.c b/src/app-utils/gnc-sx-instance-model.c
index 744c274..2b1a1f5 100644
--- a/src/app-utils/gnc-sx-instance-model.c
+++ b/src/app-utils/gnc-sx-instance-model.c
@@ -1173,7 +1173,7 @@ create_each_transaction_helper(Transaction *template_txn, void *user_data)
                   }
                 */
 
-                exchange_rate = gnc_numeric_zero();
+                exchange_rate = gnc_numeric_create (1, 1);
                 g_string_printf(exchange_rate_var_name, "%s -> %s",
                                 gnc_commodity_get_mnemonic(first_cmdty),
                                 gnc_commodity_get_mnemonic(split_cmdty));



Summary of changes:
 src/app-utils/gnc-sx-instance-model.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list