[grisbi-cvs] grisbi/src export_csv.c,1.23,1.24

Gunee guneemwelloeux at users.sourceforge.net
Wed Nov 18 22:00:06 CET 2009


Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv23219

Modified Files:
	export_csv.c 
Log Message:
Fixed category export in CSV format

Index: export_csv.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/export_csv.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- export_csv.c	30 Aug 2009 20:36:11 -0000	1.23
+++ export_csv.c	18 Nov 2009 21:00:03 -0000	1.24
@@ -501,7 +501,7 @@
 	else
 	    csv_field_debit  = gsb_real_get_string (gsb_real_abs (amount));
 
-	/* met le cheque si c'est un type a numerotation automatique */
+	/* met le cheque si c'est un type a?numerotation automatique */
 	payment_method = gsb_data_transaction_get_method_of_payment_number ( transaction_number );
 	CSV_CLEAR_FIELD (csv_field_cheque);
 	if (gsb_data_payment_get_automatic_numbering (payment_method))
@@ -599,12 +599,12 @@
 			if ( gsb_data_transaction_get_category_number ( pSplitTransaction ) != -1 )
 			{
 			    CSV_CLEAR_FIELD (csv_field_categ);
-			    csv_field_categ = my_strdup ( gsb_data_budget_get_name ( gsb_data_transaction_get_category_number ( pSplitTransaction ), 0, "" ) );
+			    csv_field_categ = my_strdup ( gsb_data_category_get_name ( gsb_data_transaction_get_category_number ( pSplitTransaction ), 0, "" ) );
 
 			    if ( gsb_data_transaction_get_sub_category_number ( pSplitTransaction ) != -1 )
 			    {
 				CSV_CLEAR_FIELD (csv_field_sous_categ);
-				csv_field_sous_categ = my_strdup ( gsb_data_budget_get_sub_budget_name ( gsb_data_transaction_get_category_number ( pSplitTransaction ),
+				csv_field_sous_categ = my_strdup ( gsb_data_category_get_sub_category_name ( gsb_data_transaction_get_category_number ( pSplitTransaction ),
 													 gsb_data_transaction_get_sub_category_number ( pSplitTransaction ),
 													 NULL ) );
 			    }
@@ -631,7 +631,7 @@
 			csv_field_rappro = my_strdup ( gsb_data_reconcile_get_name ( gsb_data_transaction_get_reconcile_number ( pSplitTransaction ) ) );
 		    }
 
-		    /* met le chã¨que si c'est un type ã  numã©rotation automatique */
+		    /* met le ch㨱ue si c'est un type 㠠num㩲otation automatique */
 		    payment_method = gsb_data_transaction_get_method_of_payment_number ( pSplitTransaction );
 		    if (gsb_data_payment_get_automatic_numbering (payment_method))
 		    {
@@ -684,12 +684,12 @@
 		    if ( gsb_data_transaction_get_category_number ( transaction_number ) != -1 )
 		    {
 			CSV_CLEAR_FIELD (csv_field_categ);
-			csv_field_categ = my_strdup ( gsb_data_budget_get_name ( gsb_data_transaction_get_category_number ( transaction_number ), 0, "" ) );
+			csv_field_categ = my_strdup ( gsb_data_category_get_name ( gsb_data_transaction_get_category_number ( transaction_number ), 0, "" ) );
 
 			if ( gsb_data_transaction_get_sub_category_number ( transaction_number ) != -1 )
 			{
 			    CSV_CLEAR_FIELD (csv_field_sous_categ);
-			    csv_field_sous_categ = my_strdup ( gsb_data_budget_get_sub_budget_name ( gsb_data_transaction_get_category_number ( transaction_number ),
+			    csv_field_sous_categ = my_strdup ( gsb_data_category_get_sub_category_name ( gsb_data_transaction_get_category_number ( transaction_number ),
 												     gsb_data_transaction_get_sub_category_number ( transaction_number ),
 												     NULL ) );
 			}



More information about the cvs mailing list