[grisbi-cvs] grisbi/src gsb_form_transaction.c,1.56,1.56.2.1
Pierre Biava
pbiava at users.sourceforge.net
Sat May 22 09:44:04 CEST 2010
- Previous message: [grisbi-cvs] grisbi/src affichage.c, 1.173, 1.173.2.1 affichage_liste.c, 1.122, 1.122.2.1 balance_estimate_config.c, 1.15, 1.15.2.1 balance_estimate_config.h, 1.5, 1.5.2.1 balance_estimate_data.c, 1.22, 1.22.2.1 balance_estimate_data.h, 1.15, 1.15.2.1 balance_estimate_future.c, 1.9, 1.9.2.1 balance_estimate_future.h, 1.5, 1.5.2.1 balance_estimate_hist.c, 1.23, 1.23.2.1 balance_estimate_hist.h, 1.10, 1.10.2.1 balance_estimate_tab.c, 1.66, 1.66.2.1 balance_estimate_tab.h, 1.15, 1.15.2.1 barre_outils.c, 1.133, 1.133.2.1 custom_list.c, 1.7, 1.7.2.1 erreur.c, 1.100, 1.100.2.1 etats_config.c, 1.177, 1.177.2.1 export_csv.c, 1.28, 1.28.2.1 fenetre_principale.c, 1.135, 1.135.2.1 fenetre_principale.h, 1.33, 1.33.2.1 file_obfuscate_qif.c, 1.5, 1.5.4.1 go-charmap-sel.c, 1.12, 1.12.4.1 go-optionmenu.c, 1.11, 1.11.4.1 gsb_account.c, 1.49, 1.49.2.1 gsb_account_property.c, 1.53, 1.53.2.1 gsb_archive_config.c, 1.29, 1.29.2.1 gsb_assistant_account.c, 1.27, 1.27.4.1 gsb_assistant_archive.c, 1.44, 1.44.2.1 gsb_assistant_archive_export.c, 1.20, 1.20.2.1 g sb_assistant_file.c, 1.19, 1.19.2.1 gsb_assistant_first.c, 1.29, 1.29.2.1 gsb_assistant_reconcile_config.c, 1.29, 1.29.2.1 gsb_autofunc.c, 1.27, 1.27.2.1 gsb_automem.c, 1.28, 1.28.2.1 gsb_bank.c, 1.26, 1.26.2.1 gsb_data_account.c, 1.103, 1.103.2.1 gsb_data_account.h, 1.44, 1.44.2.1 gsb_data_archive.c, 1.16, 1.16.2.1 gsb_data_archive_store.c, 1.18, 1.18.2.1 gsb_data_bank.c, 1.14, 1.14.4.1 gsb_data_budget.c, 1.56, 1.56.2.1 gsb_data_currency.c, 1.19, 1.19.4.1 gsb_data_currency_link.c, 1.17, 1.17.4.1 gsb_data_fyear.c, 1.22, 1.22.2.1 gsb_data_import_rule.c, 1.5, 1.5.2.1 gsb_data_partial_balance.c, 1.12, 1.12.2.1 gsb_data_partial_balance.h, 1.3, 1.3.4.1 gsb_data_payee.c, 1.53, 1.53.2.1 gsb_data_payment.c, 1.21, 1.21.2.1 gsb_data_reconcile.c, 1.22, 1.22.2.1 gsb_data_report.c, 1.34, 1.34.4.1 gsb_data_report_amout_comparison.c, 1.14, 1.14.4.1 gsb_data_report_text_comparison.c, 1.17, 1.17.4.1 gsb_data_scheduled.c, 1.34, 1.34.2.1 gsb_data_transaction.c, 1.88, 1.88.2.1 gsb_file.c, 1.64, 1.64.2.1 gsb_file_config.c, 1.96, 1.96.2.1 gsb_file_loa d.c, 1.221, 1.221.2.1 gsb_file_save.c, 1.165, 1.165.2.1 gsb_form.c, 1.161, 1.161.2.1 gsb_payment_method.c, 1.23, 1.23.2.1 gsb_real.c, 1.78, 1.78.2.1 gsb_reconcile.h, 1.2, 1.2.4.1 gsb_transactions_list.c, 1.210, 1.210.2.1 gsb_transactions_list_sort.c, 1.23, 1.23.2.1 gtk_combofix.c, 1.75, 1.75.2.1 import.c, 1.332, 1.332.2.1 main.c, 1.173, 1.173.2.1 menu.c, 1.151, 1.151.2.1 navigation.c, 1.143, 1.143.2.1 parametres.c, 1.214, 1.214.2.1 parse_cmdline.c, 1.17, 1.17.2.1 print_report.c, 1.11, 1.11.2.1 print_transactions_list.c, 1.14, 1.14.2.1 qif.c, 1.145, 1.145.2.1 structures.h, 1.246, 1.246.2.1 tiers_onglet.c, 1.172, 1.172.2.1 traitement_variables.c, 1.193, 1.193.2.1 transaction_list.c, 1.61, 1.61.2.1 transaction_list_select.c, 1.10, 1.10.2.1 transaction_list_sort.h, 1.1, 1.1.4.1 transaction_model.c, 1.7, 1.7.2.1 transaction_model.h, 1.2, 1.2.4.1 utils.c, 1.64, 1.64.2.1 utils.h, 1.29, 1.29.2.1 utils_dates.c, 1.68, 1.68.2.1 utils_files.c, 1.54, 1.54.2.1 utils_font.c, 1.4, 1.4.4.1
- Next message: [grisbi-cvs] grisbi configure.in,1.90,1.91
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv22708
Modified Files:
Tag: version_0_6_0_corr
gsb_form_transaction.c
Log Message:
Fixed a bug in treatment of transfers between accounts
Index: gsb_form_transaction.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form_transaction.c,v
retrieving revision 1.56
retrieving revision 1.56.2.1
diff -u -d -r1.56 -r1.56.2.1
--- gsb_form_transaction.c 3 Apr 2010 19:57:41 -0000 1.56
+++ gsb_form_transaction.c 22 May 2010 07:44:02 -0000 1.56.2.1
@@ -429,6 +429,7 @@
{
gint contra_transaction_number;
gint contra_mother_number = 0;
+ gint contra_marked_transaction = 0;
GtkWidget *contra_payment_button;
g_return_val_if_fail ( account_transfer >= 0, -1 );
@@ -453,9 +454,13 @@
/* if the contra transaction was a child of split, copying/deleting it
* will remove the information of the mother, so we get it here */
contra_mother_number = gsb_data_transaction_get_mother_transaction_number (
- contra_transaction_number);
+ contra_transaction_number );
- /* check if we change the account targe */
+ /* Copying/deleting remove the marked information, so we get it here */
+ contra_marked_transaction = gsb_data_transaction_get_marked_transaction (
+ contra_transaction_number );
+
+ /* check if we change the account target */
if ( gsb_data_transaction_get_contra_transaction_account (
transaction_number) != account_transfer )
{
@@ -481,7 +486,7 @@
* already set */
if ( new_transaction )
- contra_transaction_number = gsb_data_transaction_new_transaction (account_transfer);
+ contra_transaction_number = gsb_data_transaction_new_transaction ( account_transfer );
gsb_data_transaction_copy_transaction ( transaction_number,
contra_transaction_number, new_transaction );
@@ -493,6 +498,10 @@
gsb_data_transaction_set_mother_transaction_number ( contra_transaction_number,
contra_mother_number );
+ /* If this is not a new transaction it restores the marked statement */
+ gsb_data_transaction_set_marked_transaction ( contra_transaction_number,
+ contra_marked_transaction );
+
/* we have to change the amount by the opposite */
gsb_data_transaction_set_amount (contra_transaction_number,
gsb_real_opposite (gsb_data_transaction_get_amount (transaction_number)));
@@ -527,7 +536,6 @@
}
-
/**
* callback called when the user click on the 'change' button in the form
* show a popup to modify the values
- Previous message: [grisbi-cvs] grisbi/src affichage.c, 1.173, 1.173.2.1 affichage_liste.c, 1.122, 1.122.2.1 balance_estimate_config.c, 1.15, 1.15.2.1 balance_estimate_config.h, 1.5, 1.5.2.1 balance_estimate_data.c, 1.22, 1.22.2.1 balance_estimate_data.h, 1.15, 1.15.2.1 balance_estimate_future.c, 1.9, 1.9.2.1 balance_estimate_future.h, 1.5, 1.5.2.1 balance_estimate_hist.c, 1.23, 1.23.2.1 balance_estimate_hist.h, 1.10, 1.10.2.1 balance_estimate_tab.c, 1.66, 1.66.2.1 balance_estimate_tab.h, 1.15, 1.15.2.1 barre_outils.c, 1.133, 1.133.2.1 custom_list.c, 1.7, 1.7.2.1 erreur.c, 1.100, 1.100.2.1 etats_config.c, 1.177, 1.177.2.1 export_csv.c, 1.28, 1.28.2.1 fenetre_principale.c, 1.135, 1.135.2.1 fenetre_principale.h, 1.33, 1.33.2.1 file_obfuscate_qif.c, 1.5, 1.5.4.1 go-charmap-sel.c, 1.12, 1.12.4.1 go-optionmenu.c, 1.11, 1.11.4.1 gsb_account.c, 1.49, 1.49.2.1 gsb_account_property.c, 1.53, 1.53.2.1 gsb_archive_config.c, 1.29, 1.29.2.1 gsb_assistant_account.c, 1.27, 1.27.4.1 gsb_assistant_archive.c, 1.44, 1.44.2.1 gsb_assistant_archive_export.c, 1.20, 1.20.2.1 g sb_assistant_file.c, 1.19, 1.19.2.1 gsb_assistant_first.c, 1.29, 1.29.2.1 gsb_assistant_reconcile_config.c, 1.29, 1.29.2.1 gsb_autofunc.c, 1.27, 1.27.2.1 gsb_automem.c, 1.28, 1.28.2.1 gsb_bank.c, 1.26, 1.26.2.1 gsb_data_account.c, 1.103, 1.103.2.1 gsb_data_account.h, 1.44, 1.44.2.1 gsb_data_archive.c, 1.16, 1.16.2.1 gsb_data_archive_store.c, 1.18, 1.18.2.1 gsb_data_bank.c, 1.14, 1.14.4.1 gsb_data_budget.c, 1.56, 1.56.2.1 gsb_data_currency.c, 1.19, 1.19.4.1 gsb_data_currency_link.c, 1.17, 1.17.4.1 gsb_data_fyear.c, 1.22, 1.22.2.1 gsb_data_import_rule.c, 1.5, 1.5.2.1 gsb_data_partial_balance.c, 1.12, 1.12.2.1 gsb_data_partial_balance.h, 1.3, 1.3.4.1 gsb_data_payee.c, 1.53, 1.53.2.1 gsb_data_payment.c, 1.21, 1.21.2.1 gsb_data_reconcile.c, 1.22, 1.22.2.1 gsb_data_report.c, 1.34, 1.34.4.1 gsb_data_report_amout_comparison.c, 1.14, 1.14.4.1 gsb_data_report_text_comparison.c, 1.17, 1.17.4.1 gsb_data_scheduled.c, 1.34, 1.34.2.1 gsb_data_transaction.c, 1.88, 1.88.2.1 gsb_file.c, 1.64, 1.64.2.1 gsb_file_config.c, 1.96, 1.96.2.1 gsb_file_loa d.c, 1.221, 1.221.2.1 gsb_file_save.c, 1.165, 1.165.2.1 gsb_form.c, 1.161, 1.161.2.1 gsb_payment_method.c, 1.23, 1.23.2.1 gsb_real.c, 1.78, 1.78.2.1 gsb_reconcile.h, 1.2, 1.2.4.1 gsb_transactions_list.c, 1.210, 1.210.2.1 gsb_transactions_list_sort.c, 1.23, 1.23.2.1 gtk_combofix.c, 1.75, 1.75.2.1 import.c, 1.332, 1.332.2.1 main.c, 1.173, 1.173.2.1 menu.c, 1.151, 1.151.2.1 navigation.c, 1.143, 1.143.2.1 parametres.c, 1.214, 1.214.2.1 parse_cmdline.c, 1.17, 1.17.2.1 print_report.c, 1.11, 1.11.2.1 print_transactions_list.c, 1.14, 1.14.2.1 qif.c, 1.145, 1.145.2.1 structures.h, 1.246, 1.246.2.1 tiers_onglet.c, 1.172, 1.172.2.1 traitement_variables.c, 1.193, 1.193.2.1 transaction_list.c, 1.61, 1.61.2.1 transaction_list_select.c, 1.10, 1.10.2.1 transaction_list_sort.h, 1.1, 1.1.4.1 transaction_model.c, 1.7, 1.7.2.1 transaction_model.h, 1.2, 1.2.4.1 utils.c, 1.64, 1.64.2.1 utils.h, 1.29, 1.29.2.1 utils_dates.c, 1.68, 1.68.2.1 utils_files.c, 1.54, 1.54.2.1 utils_font.c, 1.4, 1.4.4.1
- Next message: [grisbi-cvs] grisbi configure.in,1.90,1.91
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list