mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-23 01:16:43 -06:00
do some account markup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1324 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
ca495ef8b4
commit
3e2c53911e
@ -207,11 +207,12 @@ xaccGetAccountID (Account *acc)
|
||||
|
||||
#define CHECK(acc) { \
|
||||
if (0 == acc->open) { \
|
||||
/* not today, soem day in the future ... */ \
|
||||
/* not today, some day in the future ... */ \
|
||||
/* printf ("Error: Account not open for editing\n"); */ \
|
||||
/* assert (0); */ \
|
||||
/* return; */ \
|
||||
} \
|
||||
if (NULL != acc->parent) acc->parent->saved = FALSE; \
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
@ -246,10 +247,8 @@ disable for now till we figure out what the right thing is.
|
||||
}
|
||||
*/
|
||||
|
||||
/* mark the account as having changed, and
|
||||
* the account group as requiring a save */
|
||||
/* mark the account as having changed */
|
||||
acc -> changed = TRUE;
|
||||
if( acc->parent != NULL ) acc->parent->saved = FALSE;
|
||||
|
||||
/* if this split belongs to another acount, remove it from
|
||||
* there first. We don't want to ever leave the system
|
||||
@ -342,10 +341,8 @@ xaccAccountRemoveSplit ( Account *acc, Split *split )
|
||||
if (acc->open & ACC_BEING_DESTROYED) return;
|
||||
CHECK (acc);
|
||||
|
||||
/* mark the account as having changed, and
|
||||
* the account group as requiring a save */
|
||||
/* mark the account as having changed */
|
||||
acc -> changed = TRUE;
|
||||
if( acc->parent != NULL ) acc->parent->saved = FALSE;
|
||||
|
||||
for( i=0,j=0; j<acc->numSplits; i++,j++ ) {
|
||||
acc->splits[i] = acc->splits[j];
|
||||
@ -681,6 +678,7 @@ xaccAccountAutoCode (Account *acc, int digits)
|
||||
|
||||
/* print */
|
||||
acc->accountCode = ultostr ((unsigned long) maxcode, BASE);
|
||||
top->saved = FALSE;
|
||||
}
|
||||
|
||||
/********************************************************************\
|
||||
|
Loading…
Reference in New Issue
Block a user