GnuCash  5.6-150-g038405b370+
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 
37 #ifdef __cplusplus
38 extern "C" {
39 #endif
40 
62 void xaccAccountAssignLots (Account *acc);
63 
70 void xaccLotFill (GNCLot *lot);
71 
85 void xaccLotScrubDoubleBalance (GNCLot *lot);
86 
109 gboolean xaccScrubMergeSubSplits (Split *split, gboolean strict);
110 
115 gboolean xaccScrubMergeLotSubSplits (GNCLot *lot, gboolean strict);
116 
117 #ifdef __cplusplus
118 }
119 #endif
120 
121 #endif /* XACC_SCRUB2_H */
122 
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.cpp:379
void xaccLotFill(GNCLot *lot)
The xaccLotFill() routine attempts to assign splits to the indicated lot until the lot balance goes t...
Definition: Scrub2.cpp:92
STRUCTS.
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.cpp:59
void xaccLotScrubDoubleBalance(GNCLot *lot)
The xaccLotScrubDoubleBalance() routine examines the indicated lot.
Definition: Scrub2.cpp:160
gboolean xaccScrubMergeSubSplits(Split *split, gboolean strict)
The xaccScrubMergeSubSplits() routine will merge together all of the splits that were at one time spl...
Definition: Scrub2.cpp:318
All type declarations for the whole Gnucash engine.