* src/engine/gnc-lot.[ch]: add LOT_IS_CLOSED and LOT_BALANCE

query parameter methods


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8334 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins
2003-05-19 02:47:48 +00:00
parent 3d12948d8c
commit 4886428cfe
3 changed files with 10 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2003-05-18 Derek Atkins <derek@ihtfp.com>
* src/engine/gnc-lot.[ch]: add LOT_IS_CLOSED and LOT_BALANCE
query parameter methods
2003-05-17 Derek Atkins <derek@ihtfp.com>
* src/import-export/qif-import/qif-file.scm: the numeric test

View File

@@ -331,6 +331,8 @@ void gnc_lot_register (void)
static const QueryObjectDef params[] = {
{ QUERY_PARAM_BOOK, GNC_ID_BOOK, (QueryAccess)gnc_lot_get_book },
{ QUERY_PARAM_GUID, QUERYCORE_GUID, (QueryAccess)gnc_lot_get_guid },
{ LOT_IS_CLOSED, QUERYCORE_BOOLEAN, (QueryAccess)gnc_lot_is_closed },
{ LOT_BALANCE, QUERYCORE_NUMERIC, (QueryAccess)gnc_lot_get_balance },
{ NULL },
};

View File

@@ -95,4 +95,7 @@ Split * gnc_lot_get_latest_split (GNCLot *lot);
* */
kvp_frame * gnc_lot_get_slots (GNCLot *);
#define LOT_IS_CLOSED "is-closed?"
#define LOT_BALANCE "balance"
#endif /* GNC_LOT_H */