gnucash maint: Bug 756339 - Prices table not updated

John Ralls jralls at code.gnucash.org
Sun Oct 11 12:54:03 EDT 2015


Updated	 via  https://github.com/Gnucash/gnucash/commit/0baf078b (commit)
	from  https://github.com/Gnucash/gnucash/commit/5c496328 (commit)



commit 0baf078b6f2b33b607ccb1b022feee2ff7f0501a
Author: John Ralls <jralls at ceridwen.us>
Date:   Sat Oct 10 17:39:18 2015 -0700

    Bug 756339 - Prices table not updated

diff --git a/src/backend/sql/gnc-price-sql.c b/src/backend/sql/gnc-price-sql.c
index 92a5176..83c5f3d 100644
--- a/src/backend/sql/gnc-price-sql.c
+++ b/src/backend/sql/gnc-price-sql.c
@@ -203,7 +203,7 @@ write_price( GNCPrice* p, gpointer data )
     g_return_val_if_fail( p != NULL, FALSE );
     g_return_val_if_fail( data != NULL, FALSE );
 
-    if ( s->is_ok && gnc_price_get_source(p) == PRICE_SOURCE_INVOICE)
+    if ( s->is_ok && gnc_price_get_source(p) != PRICE_SOURCE_INVOICE)
     {
         s->is_ok = save_price( s->be, QOF_INSTANCE(p) );
     }



Summary of changes:
 src/backend/sql/gnc-price-sql.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list