2001-11-06 Joshua Sled <jsled@asynchronous.org>

* src/gnome/dialog-sxsincelast.c (create_each_transaction_helper):
	Fixed credit/debit confusion.

	* src/gnome/dialog-sx-from-trans.c (sxftd_add_template_trans):
	Fixed credit/debit confusion.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@5773 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled 2001-11-06 08:28:58 +00:00
parent 86c55a3e22
commit 762ae7a717
3 changed files with 13 additions and 6 deletions

View File

@ -1,3 +1,11 @@
2001-11-06 Joshua Sled <jsled@asynchronous.org>
* src/gnome/dialog-sxsincelast.c (create_each_transaction_helper):
Fixed credit/debit confusion.
* src/gnome/dialog-sx-from-trans.c (sxftd_add_template_trans):
Fixed credit/debit confusion.
2001-11-04 Joshua Sled <jsled@asynchronous.org>
* src/gnome-utils/gnc-frequency.c: saving state and updating the

View File

@ -204,16 +204,14 @@ sxftd_add_template_trans(SXFromTransInfo *sxfti)
{
tmpStr = xaccPrintAmount( split_value,
gnc_default_print_info(FALSE) );
/*gnc_ttsplitinfo_set_debit_formula( ttsi, tmpStr );*/
gnc_ttsplitinfo_set_credit_formula( ttsi, tmpStr );
gnc_ttsplitinfo_set_debit_formula( ttsi, tmpStr );
}
else
{
/* Negate the numeric so it prints w/o the sign at the front. */
tmpStr = xaccPrintAmount( gnc_numeric_neg( split_value ),
gnc_default_print_info(FALSE) );
/*gnc_ttsplitinfo_set_credit_formula( ttsi, tmpStr );*/
gnc_ttsplitinfo_set_debit_formula( ttsi, tmpStr );
gnc_ttsplitinfo_set_credit_formula( ttsi, tmpStr );
}
/* Copy over per-split account info */

View File

@ -1539,7 +1539,7 @@ create_each_transaction_helper( Transaction *t, void *d )
#endif /* 0 */
}
final = gnc_numeric_sub_fixed( credit_num, debit_num );
final = gnc_numeric_sub_fixed( debit_num, credit_num );
gncn_error = gnc_numeric_check( final );
if ( gncn_error != GNC_ERROR_OK ) {
@ -1552,7 +1552,6 @@ create_each_transaction_helper( Transaction *t, void *d )
gnc_numeric_to_string( final ) );
#endif /* 0 */
xaccSplitSetBaseValue( split, final, commonCommodity );
/* xaccSplitSetValue( split, final ); */
}
#if 0
/* NOT [YET] USED */
@ -1629,11 +1628,13 @@ create_transactions_on( SchedXaction *sx, GDate *gd,
gboolean createdTCT;
#if 0
{
g_date_strftime( tmpBuf, GNC_D_WIDTH, GNC_D_FMT, gd );
DEBUG( "Creating transactions on %s for %s",
tmpBuf, xaccSchedXactionGetName( sx ) );
}
#endif /* 0 */
if ( tct != NULL
&& g_date_compare( gd, tct->date ) != 0 ) {