[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_7_97-9-g6e83c00

Pierre Biava nobody at users.sourceforge.net
Tue Dec 28 21:11:18 CET 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  6e83c008c3b565221de82f1b7715ad1865a74692 (commit)
      from  6248509a00a686181b9b6ea89eeb97f64272c40c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6e83c008c3b565221de82f1b7715ad1865a74692
Author: pbiava <pierre.biava at nerim.net>
Date:   Tue Dec 28 21:07:01 2010 +0100

    fixes bug 1234. Problem of computing the balance

-----------------------------------------------------------------------

Changes:
diff --git a/src/gsb_data_account.c b/src/gsb_data_account.c
index fb4959f..37ff2e2 100644
--- a/src/gsb_data_account.c
+++ b/src/gsb_data_account.c
@@ -1066,8 +1066,13 @@ gsb_real gsb_data_account_calculate_current_and_marked_balances ( gint account_n
     if ( balances_with_scheduled )
         res = 0;
     else
-        res = g_date_compare ( date_jour,
-                        gsb_data_transaction_get_date ( transaction_number ) );
+    {
+        const GDate *date;
+
+        date = gsb_data_transaction_get_value_date_or_date ( transaction_number );
+        res = g_date_compare ( date_jour, date );
+    }
+
 	if ( gsb_data_transaction_get_account_number (transaction_number) == account_number
 	     &&
 	     !gsb_data_transaction_get_mother_transaction_number (transaction_number)


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list