mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
start roughing in support for lots
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6858 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -46,19 +46,20 @@
|
||||
* an entity, the type of the entity will match the type of the
|
||||
* identifier. */
|
||||
|
||||
typedef char * GNCIdType;
|
||||
typedef const char * GNCIdType;
|
||||
typedef const char * GNCIdTypeConst;
|
||||
|
||||
#define GNC_ID_NONE NULL
|
||||
#define GNC_ID_NULL "null"
|
||||
#define GNC_ID_ACCOUNT "Account"
|
||||
#define GNC_ID_TRANS "Trans"
|
||||
#define GNC_ID_SPLIT "Split"
|
||||
#define GNC_ID_PRICE "Price"
|
||||
#define GNC_ID_BOOK "Book"
|
||||
#define GNC_ID_SESSION "Session"
|
||||
#define GNC_ID_SCHEDXACTION "SchedXaction"
|
||||
#define GNC_ID_FREQSPEC "FreqSpec"
|
||||
#define GNC_ID_NONE NULL
|
||||
#define GNC_ID_ACCOUNT "Account"
|
||||
#define GNC_ID_BOOK "Book"
|
||||
#define GNC_ID_FREQSPEC "FreqSpec"
|
||||
#define GNC_ID_LOT "Lot"
|
||||
#define GNC_ID_NULL "null"
|
||||
#define GNC_ID_PRICE "Price"
|
||||
#define GNC_ID_SPLIT "Split"
|
||||
#define GNC_ID_SCHEDXACTION "SchedXaction"
|
||||
#define GNC_ID_SESSION "Session"
|
||||
#define GNC_ID_TRANS "Trans"
|
||||
|
||||
/* Return the type of an identifier. */
|
||||
GNCIdType xaccGUIDType (const GUID * guid, GNCBook *book);
|
||||
|
||||
@@ -28,6 +28,7 @@ libgncmod_engine_la_SOURCES = \
|
||||
gnc-engine-util.c \
|
||||
gnc-engine.c \
|
||||
gnc-event.c \
|
||||
gnc-lot.c \
|
||||
gnc-numeric.c \
|
||||
gnc-pricedb.c \
|
||||
gnc-session.c \
|
||||
@@ -90,6 +91,7 @@ noinst_HEADERS = \
|
||||
TransactionP.h \
|
||||
gnc-book-p.h \
|
||||
gnc-event-p.h \
|
||||
gnc-lot-p.h \
|
||||
gnc-pricedb-p.h \
|
||||
gnc-session-p.h \
|
||||
gncObjectP.h \
|
||||
|
||||
@@ -103,6 +103,7 @@ xaccInitSplit(Split * split, GNCBook *book)
|
||||
/* fill in some sane defaults */
|
||||
xaccSplitSetAccount(split, NULL);
|
||||
split->parent = NULL;
|
||||
split->lot = NULL;
|
||||
|
||||
split->action = g_cache_insert(gnc_engine_get_string_cache(), "");
|
||||
split->memo = g_cache_insert(gnc_engine_get_string_cache(), "");
|
||||
|
||||
@@ -82,6 +82,8 @@ struct split_s
|
||||
|
||||
Account *acc; /* back-pointer to debited/credited account */
|
||||
|
||||
GNCLot *lot; /* back-pointer to debited/credited lot */
|
||||
|
||||
Transaction *parent; /* parent of split */
|
||||
|
||||
/* The memo field is an arbitrary user-assiged value.
|
||||
|
||||
@@ -34,9 +34,10 @@ typedef struct account_group_s AccountGroup;
|
||||
typedef struct split_s Split;
|
||||
typedef struct transaction_s Transaction;
|
||||
typedef struct gnc_book_struct GNCBook;
|
||||
typedef struct gnc_session_struct GNCSession;
|
||||
typedef struct gnc_commodity_s gnc_commodity;
|
||||
typedef struct gnc_commodity_table_s gnc_commodity_table;
|
||||
typedef struct gnc_lot_struct GNCLot;
|
||||
typedef struct gnc_session_struct GNCSession;
|
||||
|
||||
typedef GList AccountList;
|
||||
typedef GList BookList;
|
||||
|
||||
Reference in New Issue
Block a user