GnuCash 2.4.99
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 xaccScrubMergeLotSubSplits (GNCLot *lot)

Detailed Description

Utilities to Convert Stock Accounts to use Lots.

Author:
Created by Linas Vepstas March 2003
Copyright (c) 2003 Linas Vepstas <linas@linas.org>

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.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines