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

Utilities to Convert Stock Accounts to use Lots. More...

#include "config.h"
#include <glib.h>
#include "qof.h"
#include "Account.h"
#include "AccountP.h"
#include "Transaction.h"
#include "TransactionP.h"
#include "Scrub2.h"
#include "ScrubP.h"
#include "cap-gains.h"
#include "gnc-engine.h"
#include "gnc-lot.h"
#include "policy-p.h"

Go to the source code of this file.

Functions

void xaccAccountAssignLots (Account *acc)
 
void xaccLotFill (GNCLot *lot)
 
void xaccLotScrubDoubleBalance (GNCLot *lot)
 
gboolean xaccScrubMergeSubSplits (Split *split, gboolean strict)
 
gboolean xaccScrubMergeLotSubSplits (GNCLot *lot, gboolean strict)
 

Detailed Description

Utilities to Convert Stock Accounts to use Lots.

Author
Created by Linas Vepstas March 2003
Copyright (c) 2003 Linas Vepstas linas.nosp@m.@lin.nosp@m.as.or.nosp@m.g

Provides a set of functions and utilities for checking and repairing ('scrubbing clean') the usage of Lots and lot balances in stock and commodity accounts. Broken lots are repaired using the accounts specific accounting policy (probably FIFO).

Definition in file Scrub2.c.