[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_7_4-116-gf686677

Pierre Biava nobody at users.sourceforge.net
Tue Nov 30 19:28:53 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  f68667736741ac0f04fcd121810701cf0ad2dbb8 (commit)
      from  abc82f89c0ccc736d75344389c3d12c6966e8b75 (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 f68667736741ac0f04fcd121810701cf0ad2dbb8
Author: pbiava <pierre.biava at nerim.net>
Date:   Tue Nov 30 19:27:55 2010 +0100

    fixes a bug for detecting a transaction with an identifier which already exists

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

Changes:
diff --git a/src/import.c b/src/import.c
index 162e873..6ceb993 100644
--- a/src/import.c
+++ b/src/import.c
@@ -2083,8 +2083,8 @@ gboolean gsb_import_define_action ( struct struct_compte_importation *imported_a
         {
             /* the id exists with the same account_nb, so the transaction is already
              * in grisbi we will forget that transaction */
-            if ( g_date_get_year ( imported_transaction -> date ) == g_date_get_year (
-             gsb_data_transaction_get_date ( transaction_no ) ) )
+            if ( g_date_compare ( imported_transaction -> date,
+             gsb_data_transaction_get_date ( transaction_no ) ) == 0 )
             {
                 imported_transaction -> action = IMPORT_TRANSACTION_LEAVE_TRANSACTION;
             }


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list