mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-12 17:32:00 -05: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:
1 parent
86c55a3e22
commit
762ae7a717
3 files changed
+13
-6
No files matched your search
@@ -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>
|
2001-11-04 Joshua Sled <jsled@asynchronous.org>
|
||||||
|
|
||||||
* src/gnome-utils/gnc-frequency.c: saving state and updating the
|
* 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,
|
tmpStr = xaccPrintAmount( split_value,
|
||||||
gnc_default_print_info(FALSE) );
|
gnc_default_print_info(FALSE) );
|
||||||
/*gnc_ttsplitinfo_set_debit_formula( ttsi, tmpStr );*/
|
gnc_ttsplitinfo_set_debit_formula( ttsi, tmpStr );
|
||||||
gnc_ttsplitinfo_set_credit_formula( ttsi, tmpStr );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Negate the numeric so it prints w/o the sign at the front. */
|
/* Negate the numeric so it prints w/o the sign at the front. */
|
||||||
tmpStr = xaccPrintAmount( gnc_numeric_neg( split_value ),
|
tmpStr = xaccPrintAmount( gnc_numeric_neg( split_value ),
|
||||||
gnc_default_print_info(FALSE) );
|
gnc_default_print_info(FALSE) );
|
||||||
/*gnc_ttsplitinfo_set_credit_formula( ttsi, tmpStr );*/
|
gnc_ttsplitinfo_set_credit_formula( ttsi, tmpStr );
|
||||||
gnc_ttsplitinfo_set_debit_formula( ttsi, tmpStr );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Copy over per-split account info */
|
/* Copy over per-split account info */
|
||||||
|
|||||||
@@ -1539,7 +1539,7 @@ create_each_transaction_helper( Transaction *t, void *d )
|
|||||||
#endif /* 0 */
|
#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 );
|
gncn_error = gnc_numeric_check( final );
|
||||||
if ( gncn_error != GNC_ERROR_OK ) {
|
if ( gncn_error != GNC_ERROR_OK ) {
|
||||||
@@ -1552,7 +1552,6 @@ create_each_transaction_helper( Transaction *t, void *d )
|
|||||||
gnc_numeric_to_string( final ) );
|
gnc_numeric_to_string( final ) );
|
||||||
#endif /* 0 */
|
#endif /* 0 */
|
||||||
xaccSplitSetBaseValue( split, final, commonCommodity );
|
xaccSplitSetBaseValue( split, final, commonCommodity );
|
||||||
/* xaccSplitSetValue( split, final ); */
|
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
/* NOT [YET] USED */
|
/* NOT [YET] USED */
|
||||||
@@ -1629,11 +1628,13 @@ create_transactions_on( SchedXaction *sx, GDate *gd,
|
|||||||
gboolean createdTCT;
|
gboolean createdTCT;
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
{
|
{
|
||||||
g_date_strftime( tmpBuf, GNC_D_WIDTH, GNC_D_FMT, gd );
|
g_date_strftime( tmpBuf, GNC_D_WIDTH, GNC_D_FMT, gd );
|
||||||
DEBUG( "Creating transactions on %s for %s",
|
DEBUG( "Creating transactions on %s for %s",
|
||||||
tmpBuf, xaccSchedXactionGetName( sx ) );
|
tmpBuf, xaccSchedXactionGetName( sx ) );
|
||||||
}
|
}
|
||||||
|
#endif /* 0 */
|
||||||
|
|
||||||
if ( tct != NULL
|
if ( tct != NULL
|
||||||
&& g_date_compare( gd, tct->date ) != 0 ) {
|
&& g_date_compare( gd, tct->date ) != 0 ) {
|
||||||
|
|||||||
Reference in new issue
Block a user