mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fixes from rob browning
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@890 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
4229d64e18
commit
55b6cb7389
@ -34,6 +34,7 @@
|
||||
#include "TransactionP.h"
|
||||
#include "TransLog.h"
|
||||
#include "util.h"
|
||||
#include "date.h"
|
||||
|
||||
|
||||
/*
|
||||
@ -549,6 +550,19 @@ xaccTransCommitEdit (Transaction *trans)
|
||||
|
||||
xaccTransRebalance (trans);
|
||||
|
||||
/* um, theoritically, it is impossible for splits
|
||||
* to get inserted out of order. But we'll get paranoid,
|
||||
* and check anyway, at the loss of some performance.
|
||||
*/
|
||||
i=0;
|
||||
split = trans->splits[i];
|
||||
while (split) {
|
||||
acc = split ->acc;
|
||||
xaccCheckDateOrder(acc, trans->splits[i]);
|
||||
i++;
|
||||
split = trans->splits[i];
|
||||
}
|
||||
|
||||
i=0;
|
||||
split = trans->splits[i];
|
||||
while (split) {
|
||||
|
@ -221,6 +221,4 @@ int xaccSplitOrder (Split **sa, Split **sb);
|
||||
*/
|
||||
int xaccCountTransactions (Transaction **tarray);
|
||||
|
||||
/** GLOBALS *********************************************************/
|
||||
|
||||
#endif /* __XACC_TRANSACTION_H__ */
|
||||
|
Loading…
Reference in New Issue
Block a user