mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
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:
parent
86c55a3e22
commit
762ae7a717
@ -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
|
||||
|
@ -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 */
|
||||
|
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user