mirror of
https://github.com/Gnucash/gnucash.git
synced 2026-10-13 18:02:00 -05:00
2004-03-14 Joshua Sled <jsled@asynchronous.org>
* src/gnome/druid-loan.c (ld_get_loan_range): Fix precedence bug screwing up loan review page. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9867 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
1 parent
52a65d7915
commit
3a84513d47
2 files changed
+17
-4
No files matched your search
@@ -1,3 +1,8 @@
|
||||
2004-03-14 Joshua Sled <jsled@asynchronous.org>
|
||||
|
||||
* src/gnome/druid-loan.c (ld_get_loan_range): Fix precedence bug
|
||||
screwing up loan review page.
|
||||
|
||||
2004-03-14 Joshua Sled <jsled@asynchronous.org>
|
||||
|
||||
* src/register/register-core/formulacell.c
|
||||
|
||||
+12
-4
@@ -2522,11 +2522,18 @@ static
|
||||
void
|
||||
ld_get_loan_range( LoanDruidData *ldd, GDate *start, GDate *end )
|
||||
{
|
||||
int monthsTotal;
|
||||
struct tm *endDateMath;
|
||||
|
||||
*start = *ldd->ld.startDate;
|
||||
*end = *start;
|
||||
g_date_add_months( end,
|
||||
ldd->ld.numPer - 1
|
||||
* ( ldd->ld.perSize == MONTHS ? 1 : 12 ) );
|
||||
|
||||
endDateMath = g_new0( struct tm, 1 );
|
||||
g_date_to_struct_tm( ldd->ld.startDate, endDateMath );
|
||||
monthsTotal = ( (ldd->ld.numPer - 1)
|
||||
* ( ldd->ld.perSize == MONTHS ? 1 : 12 ) );
|
||||
endDateMath->tm_mon += monthsTotal;
|
||||
g_date_set_time( end, mktime( endDateMath ) );
|
||||
g_free( endDateMath );
|
||||
}
|
||||
|
||||
static
|
||||
@@ -2558,6 +2565,7 @@ ld_rev_get_dates( LoanDruidData *ldd, GDate *start, GDate *end )
|
||||
PERR( "Unknown review date range option %d", range );
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static
|
||||
|
||||
Reference in new issue
Block a user