[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_7_99-36-g8b0cdcd
Pierre Biava
nobody at users.sourceforge.net
Sat Feb 5 22:18:49 CET 2011
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 8b0cdcd556c7780f19f11dc72185f098a0f5fc05 (commit)
from dc55391c60aab3140cde4178a51dde8fcdd21e99 (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 8b0cdcd556c7780f19f11dc72185f098a0f5fc05
Author: pbiava <pierre.biava at nerim.net>
Date: Sat Feb 5 22:17:48 2011 +0100
new version of correction the control of the domain of validity
of dates of reconciled transactions
-----------------------------------------------------------------------
Changes:
diff --git a/src/gsb_form.c b/src/gsb_form.c
index a01acee..819763c 100644
--- a/src/gsb_form.c
+++ b/src/gsb_form.c
@@ -2801,22 +2801,16 @@ gboolean gsb_form_validate_form_transaction ( gint transaction_number,
{
if ( is_transaction
&& gsb_data_transaction_get_marked_transaction ( transaction_number ) == OPERATION_RAPPROCHEE
- && mother_number == 0
- && g_date_valid ( gsb_data_transaction_get_value_date ( transaction_number ) ) == FALSE)
+ && mother_number == 0 )
{
- const GDate *init_date;
const GDate *final_date;
gint reconcile_number;
reconcile_number = gsb_data_transaction_get_reconcile_number ( transaction_number );
- init_date = gsb_data_reconcile_get_init_date ( reconcile_number );
final_date = gsb_data_reconcile_get_final_date ( reconcile_number );
- if ( g_date_compare ( save_form_date, init_date ) < 0
- ||
- g_date_compare ( save_form_date, final_date ) > 0 )
+ if ( g_date_compare ( save_form_date, final_date ) > 0 )
{
- tmpstr = g_strdup_printf ( _("Beware the date must be between %s and %s"),
- gsb_format_gdate ( init_date ),
+ tmpstr = g_strdup_printf ( _("The date must be less than or equal at %s"),
gsb_format_gdate ( final_date ) );
dialogue_hint ( tmpstr, _("Invalid date") );
hooks/post-receive
--
grisbi
More information about the cvs
mailing list