|
GnuCash 2.4.99
|
00001 /********************************************************************\ 00002 * Scrub.h -- convert single-entry accounts to clean double-entry * 00003 * * 00004 * This program is free software; you can redistribute it and/or * 00005 * modify it under the terms of the GNU General Public License as * 00006 * published by the Free Software Foundation; either version 2 of * 00007 * the License, or (at your option) any later version. * 00008 * * 00009 * This program is distributed in the hope that it will be useful, * 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 00012 * GNU General Public License for more details. * 00013 * * 00014 * You should have received a copy of the GNU General Public License* 00015 * along with this program; if not, contact: * 00016 * * 00017 * Free Software Foundation Voice: +1-617-542-5942 * 00018 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 * 00019 * Boston, MA 02110-1301, USA gnu@gnu.org * 00020 * * 00021 \********************************************************************/ 00022 00050 #ifndef XACC_SCRUB_H 00051 #define XACC_SCRUB_H 00052 00053 #include "gnc-engine.h" 00054 00075 void xaccTransScrubOrphans (Transaction *trans); 00076 00080 void xaccAccountScrubOrphans (Account *acc); 00081 00085 void xaccAccountTreeScrubOrphans (Account *acc); 00086 00094 void xaccSplitScrub (Split *split); 00095 00100 void xaccTransScrubSplits (Transaction *trans); 00101 void xaccAccountScrubSplits (Account *account); 00102 void xaccAccountTreeScrubSplits (Account *account); 00103 00109 void xaccTransScrubImbalance (Transaction *trans, Account *root, 00110 Account *parent); 00111 void xaccAccountScrubImbalance (Account *acc); 00112 void xaccAccountTreeScrubImbalance (Account *acc); 00113 00117 void xaccTransScrubCurrency (Transaction *trans); 00118 00126 void xaccTransScrubCurrencyFromSplits(Transaction *trans); 00127 00130 void xaccAccountScrubCommodity (Account *account); 00131 00135 void xaccAccountTreeScrubCommodities (Account *acc); 00136 00150 void xaccAccountTreeScrubQuoteSources (Account *root, gnc_commodity_table *table); 00151 00152 void xaccAccountScrubKvp (Account *account); 00153 00154 #endif /* XACC_SCRUB_H */ 00155
1.7.4