[grisbi-cvs] grisbi/src balance_estimate_tab.c,1.71,1.72
Pierre Biava
pbiava at users.sourceforge.net
Mon May 24 15:32:27 CEST 2010
- Previous message: [grisbi-cvs] grisbi-web/templates/download cvs.de.inc, 1.1, 1.2 cvs.es.inc, 1.3, 1.4 cvs.fr.inc, 1.10, 1.11 cvs.it.inc, 1.7, 1.8
- Next message: [grisbi-cvs] grisbi/src gtk_combofix.c,1.77,1.78
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv7301
Modified Files:
balance_estimate_tab.c
Log Message:
fixes a bug in the amount of transfers between accounts
Index: balance_estimate_tab.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/balance_estimate_tab.c,v
retrieving revision 1.71
retrieving revision 1.72
diff -u -d -r1.71 -r1.72
--- balance_estimate_tab.c 23 May 2010 21:05:42 -0000 1.71
+++ balance_estimate_tab.c 24 May 2010 13:32:25 -0000 1.72
@@ -1127,12 +1127,15 @@
gchar *str_amount;
GDate *date_tomorrow;
gsb_real amount;
+ gboolean inverse_amount = FALSE;
if ( account_number != scheduled -> account_number )
{
if ( scheduled -> is_transfert == 0
|| ( scheduled -> is_transfert && account_number != scheduled -> account_transfert ) )
continue;
+ else
+ inverse_amount = TRUE;
}
date_tomorrow = gsb_date_tomorrow ( );
@@ -1157,7 +1160,7 @@
SPP_ORIGIN_FUTURE,
value );
- if ( scheduled -> is_transfert )
+ if ( inverse_amount )
amount = gsb_real_opposite ( scheduled -> amount );
else
amount = scheduled -> amount;
- Previous message: [grisbi-cvs] grisbi-web/templates/download cvs.de.inc, 1.1, 1.2 cvs.es.inc, 1.3, 1.4 cvs.fr.inc, 1.10, 1.11 cvs.it.inc, 1.7, 1.8
- Next message: [grisbi-cvs] grisbi/src gtk_combofix.c,1.77,1.78
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list