GnuCash  4.8a-80-g9825132ea+
Scrub2.h
Go to the documentation of this file.
1 /********************************************************************\
2  * Scrub2.h -- Low-level Lot Management Routines. *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA gnu@gnu.org *
20 \********************************************************************/
21 
32 #ifndef XACC_SCRUB2_H
33 #define XACC_SCRUB2_H
34 
35 #include "gnc-engine.h"
36 
58 void xaccAccountAssignLots (Account *acc);
59 
66 void xaccLotFill (GNCLot *lot);
67 
81 void xaccLotScrubDoubleBalance (GNCLot *lot);
82 
105 gboolean xaccScrubMergeSubSplits (Split *split, gboolean strict);
106 
111 gboolean xaccScrubMergeLotSubSplits (GNCLot *lot, gboolean strict);
112 
113 #endif /* XACC_SCRUB2_H */
114 
gboolean xaccScrubMergeLotSubSplits(GNCLot *lot, gboolean strict)
The xaccScrubMergeLotSubSplits() routine does the same as the xaccScrubMergSubSplits, except that it does it for all of the splits in the lot.
Definition: Scrub2.c:383
void xaccLotFill(GNCLot *lot)
The xaccLotFill() routine attempts to assign splits to the indicated lot until the lot balance goes t...
Definition: Scrub2.c:96
void xaccAccountAssignLots(Account *acc)
The xaccAccountAssignLots() routine will walk over all of the splits in an account, and make sure that each belongs to a lot.
Definition: Scrub2.c:58
void xaccLotScrubDoubleBalance(GNCLot *lot)
The xaccLotScrubDoubleBalance() routine examines the indicated lot.
Definition: Scrub2.c:164
gboolean xaccScrubMergeSubSplits(Split *split, gboolean strict)
The xaccScrubMergeSubSplits() routine will merge together all of the splits that were at one time spl...
Definition: Scrub2.c:322
All type declarations for the whole Gnucash engine.