[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_5-82-g52b2ae1
Pierre Biava
nobody at users.sourceforge.net
Tue Apr 10 21:58:26 CEST 2012
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 52b2ae12201f453b332f0586d2970a6d795be1d8 (commit)
from 8d4a07936cd2d2187ad2b215fb6b020e7cdd5993 (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 52b2ae12201f453b332f0586d2970a6d795be1d8
Author: pbiava <pierre.biava at nerim.net>
Date: Tue Apr 10 21:57:41 2012 +0200
fixed: increments the date of change of month
-----------------------------------------------------------------------
Changes:
diff --git a/src/bet_data.c b/src/bet_data.c
index 9330cf5..301244b 100644
--- a/src/bet_data.c
+++ b/src/bet_data.c
@@ -1725,11 +1725,19 @@ void bet_data_transfert_update_date_if_necessary ( struct_transfert_data *transf
if ( transfert->direct_debit )
bet_array_create_transaction_from_transfert ( transfert, same_month );
+ /* on incrémente la date de prélèvement */
tmp_date = gsb_date_copy ( transfert -> date );
g_date_free ( transfert -> date );
g_date_add_months ( tmp_date, 1 );
transfert -> date = tmp_date;
+
+ /* on incrémente la date de bascule */
+ tmp_date = gsb_date_copy ( transfert -> date_bascule );
+
+ g_date_free ( transfert -> date_bascule );
+ g_date_add_months ( tmp_date, 1 );
+ transfert -> date_bascule = tmp_date;
}
g_date_free ( date_jour );
hooks/post-receive
--
grisbi
More information about the cvs
mailing list