Scrub2.h File Reference

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

#include "gnc-engine.h"

Go to the source code of this file.

Functions

Lot Management Routines
Provides the low-level API for checking and repairing ('scrubbing clean') the usage of Lots and lot balances in stock and commodity accounts. Broken lots are repaired using a first-in, first-out (FIFO) accounting schedule.

This is a 'low-level' API in the sense that each routine accomplishes only one particular task needed to clean up a Lot. To clean up a Lot as a whole, you almost certainly want to use one of the high-level API routines from the Scrub3.h file.

void xaccAccountAssignLots (Account *acc)
void xaccLotFill (GNCLot *lot)
void xaccLotScrubDoubleBalance (GNCLot *lot)
void xaccScrubSubSplitPrice (Split *split, int maxmult, int maxamtscu)
gboolean xaccScrubMergeSubSplits (Split *split)
gboolean xaccScrubMergeTransSubSplits (Transaction *txn)
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>

Definition in file Scrub2.h.


Generated on Thu Sep 2 04:36:47 2010 for GnuCash by  doxygen 1.5.7.1