[grisbi-cvs] grisbi/src gsb_form_transaction.c,1.41,1.42

Pierre Biava pbiava at users.sourceforge.net
Mon May 4 22:20:02 CEST 2009


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

Modified Files:
	gsb_form_transaction.c 
Log Message:
Updates the first page after a modification of a transfer between accounts

Index: gsb_form_transaction.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/gsb_form_transaction.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- gsb_form_transaction.c	26 Apr 2009 17:39:34 -0000	1.41
+++ gsb_form_transaction.c	4 May 2009 20:20:00 -0000	1.42
@@ -457,7 +457,7 @@
 
     /* 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)));;
+				     gsb_real_opposite (gsb_data_transaction_get_amount (transaction_number)));
 
 
     /* we have to check the change */
@@ -485,6 +485,9 @@
     else
 	gsb_transactions_list_update_transaction (contra_transaction_number);
 
+    /* recalculates the balance of the transfer account */
+    gsb_data_account_calculate_current_and_marked_balances ( account_transfer );
+
     return contra_transaction_number;
 }
 



More information about the cvs mailing list