GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Scrub.h File Reference

convert single-entry accounts to clean double-entry More...

#include "gnc-engine.h"

Go to the source code of this file.

Functions

Double-Entry Scrubbing

Convert single-entry accounts to clean double-entry

Provides a set of functions and utilities for checking and repairing (formerly called 'scrubbing clean') single-entry accounts so that they can be promoted into self-consistent, clean double-entry accounts. Basically and additionally, this file collects all functions that turn old (deprecated) data structures into the current new data model.

The ScrubOrphans() methods search for transacations that contain splits that do not have a parent account. These "orphaned splits" are placed into an "orphan account" which the user will have to go into and clean up. Kind of like the unix "Lost+Found" directory for orphaned inodes.

void xaccTransScrubOrphans (Transaction *trans)
 
void xaccAccountScrubOrphans (Account *acc)
 
void xaccAccountTreeScrubOrphans (Account *acc)
 
void xaccSplitScrub (Split *split)
 
void xaccTransScrubSplits (Transaction *trans)
 
void xaccAccountScrubSplits (Account *account)
 
void xaccAccountTreeScrubSplits (Account *account)
 
void xaccTransScrubImbalance (Transaction *trans, Account *root, Account *parent)
 
void xaccAccountScrubImbalance (Account *acc)
 
void xaccAccountTreeScrubImbalance (Account *acc)
 
void xaccTransScrubCurrency (Transaction *trans)
 
void xaccAccountScrubCommodity (Account *account)
 
void xaccAccountTreeScrubCommodities (Account *acc)
 
void xaccAccountTreeScrubQuoteSources (Account *root, gnc_commodity_table *table)
 
void xaccAccountScrubKvp (Account *account)
 

Detailed Description

convert single-entry accounts to clean double-entry

Author
Created by Linas Vepstas December 1998
Copyright (c) 1998-2000, 2003 Linas Vepstas linas.nosp@m.@lin.nosp@m.as.or.nosp@m.g

Definition in file Scrub.h.