GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
cap-gains.h
Go to the documentation of this file.
1 /********************************************************************\
2  * cap-gains.h -- Automatically Compute Capital Gains/Losses *
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 [email protected] *
20 \********************************************************************/
21 
80 #ifndef XACC_CAP_GAINS_H
81 #define XACC_CAP_GAINS_H
82 
83 #include "gnc-engine.h"
84 
97 
107 gboolean xaccAccountHasTrades (const Account *);
108 
121  gnc_numeric sign,
122  gnc_commodity *currency);
123 GNCLot * xaccAccountFindLatestOpenLot (Account *acc,
124  gnc_numeric sign,
125  gnc_commodity *currency);
126 
133 
140 
164 gboolean xaccSplitAssign (Split *split);
165 
184 Split * xaccSplitAssignToLot (Split *split, GNCLot *lot);
185 
205 void xaccSplitComputeCapGains(Split *split, Account *gain_acc);
206 void xaccLotComputeCapGains (GNCLot *lot, Account *gain_acc);
207 
208 #endif /* XACC_CAP_GAINS_H */
209 
212 /* =========================== END OF FILE ======================= */
GNCLot * xaccAccountFindEarliestOpenLot(Account *acc, gnc_numeric sign, gnc_commodity *currency)
Definition: cap-gains.c:191
void xaccSplitComputeCapGains(Split *split, Account *gain_acc)
Definition: cap-gains.c:536
gboolean xaccAccountHasTrades(const Account *)
Definition: cap-gains.c:79
Split * xaccSplitGetGainsSourceSplit(const Split *)
Definition: cap-gains.c:514
gnc_numeric xaccSplitGetCapGains(Split *)
Definition: cap-gains.c:911
Split * xaccSplitGetCapGainsSplit(const Split *)
Definition: cap-gains.c:492
All type declarations for the whole Gnucash engine.
Split * xaccSplitAssignToLot(Split *split, GNCLot *lot)
Definition: cap-gains.c:222
gboolean xaccSplitAssign(Split *split)
Definition: cap-gains.c:438
Definition: SplitP.h:71