[grisbi-cvs] grisbi/src tiers_onglet.c,1.151,1.152
Pierre Biava
pbiava at users.sourceforge.net
Sat Mar 14 19:31:57 CET 2009
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv20887
Modified Files:
tiers_onglet.c
Log Message:
modification does not save the name of the payee if not change.
Index: tiers_onglet.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/tiers_onglet.c,v
retrieving revision 1.151
retrieving revision 1.152
diff -u -d -r1.151 -r1.152
--- tiers_onglet.c 14 Mar 2009 09:47:00 -0000 1.151
+++ tiers_onglet.c 14 Mar 2009 18:31:55 -0000 1.152
@@ -801,8 +801,14 @@
gsb_data_transaction_set_party_number ( transaction_number,
new_payee_number );
if ( save_notes )
+ {
+ if ( my_strcmp ( (gchar *) gsb_data_payee_get_name (
+ payee_number, TRUE ),
+ (gchar *) gsb_data_payee_get_name (
+ new_payee_number, TRUE ) ) != 0 )
gsb_data_transaction_set_notes ( transaction_number,
gsb_data_payee_get_name ( payee_number, TRUE ) );
+ }
if ( extract_num )
{
nombre = gsb_string_extract_int (
@@ -834,7 +840,11 @@
gsb_data_scheduled_set_party_number ( scheduled_number,
new_payee_number );
if ( save_notes )
- gsb_data_scheduled_set_notes ( scheduled_number,
+ if ( my_strcmp ( (gchar *) gsb_data_payee_get_name (
+ payee_number, TRUE ),
+ (gchar *) gsb_data_payee_get_name (
+ new_payee_number, TRUE ) ) != 0 )
+ gsb_data_scheduled_set_notes ( scheduled_number,
gsb_data_payee_get_name ( payee_number, TRUE ) );
if ( extract_num )
{
More information about the cvs
mailing list