[grisbi-cvs] grisbi/src gsb_transactions_list.c,1.186,1.187
Pierre Biava
pbiava at users.sourceforge.net
Sat Nov 28 11:58:17 CET 2009
Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv27128
Modified Files:
gsb_transactions_list.c
Log Message:
WARNING : display of financials years in child transactions
Index: gsb_transactions_list.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_transactions_list.c,v
retrieving revision 1.186
retrieving revision 1.187
diff -u -d -r1.186 -r1.187
--- gsb_transactions_list.c 2 Nov 2009 20:46:42 -0000 1.186
+++ gsb_transactions_list.c 28 Nov 2009 10:58:14 -0000 1.187
@@ -665,6 +665,7 @@
case ELEMENT_CATEGORY:
case ELEMENT_DEBIT:
case ELEMENT_CREDIT:
+ case ELEMENT_EXERCICE:
break;
default:
@@ -744,17 +745,27 @@
/* mise en forme du moyen de paiement */
case ELEMENT_PAYMENT_TYPE:
- return ( my_strdup (gsb_data_payment_get_name ( gsb_data_transaction_get_method_of_payment_number ( transaction_number))));
+ return ( my_strdup (gsb_data_payment_get_name (
+ gsb_data_transaction_get_method_of_payment_number (
+ transaction_number ) ) ) );
/* mise en forme du no de rapprochement */
case ELEMENT_RECONCILE_NB:
- return ( my_strdup (gsb_data_reconcile_get_name ( gsb_data_transaction_get_reconcile_number ( transaction_number))));
+ return ( my_strdup (gsb_data_reconcile_get_name (
+ gsb_data_transaction_get_reconcile_number (
+ transaction_number ) ) ) );
/* mise en place de l'exo */
case ELEMENT_EXERCICE:
- return ( my_strdup (gsb_data_fyear_get_name (gsb_data_transaction_get_financial_year_number ( transaction_number))));
+
+ if ( gsb_data_transaction_get_split_of_transaction ( transaction_number ) )
+ return g_strdup ( "" );
+ else
+ return ( my_strdup ( gsb_data_fyear_get_name (
+ gsb_data_transaction_get_financial_year_number (
+ transaction_number ) ) ) );
/* mise en place des catégories */
More information about the cvs
mailing list